Class: AWSCDK::ECS::CredentialSpecConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CredentialSpecConfig
- Defined in:
- ecs/credential_spec_config.rb
Overview
Configuration for a credential specification (CredSpec) used for a ECS container.
Instance Attribute Summary collapse
-
#location ⇒ String
readonly
Location of the CredSpec file.
-
#type_prefix ⇒ String
readonly
Prefix used for the CredSpec string.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location:, type_prefix:) ⇒ CredentialSpecConfig
constructor
A new instance of CredentialSpecConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(location:, type_prefix:) ⇒ CredentialSpecConfig
Returns a new instance of CredentialSpecConfig.
9 10 11 12 13 14 |
# File 'ecs/credential_spec_config.rb', line 9 def initialize(location:, type_prefix:) @location = location Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location") @type_prefix = type_prefix Jsii::Type.check_type(@type_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "typePrefix") end |
Instance Attribute Details
#location ⇒ String (readonly)
Location of the CredSpec file.
19 20 21 |
# File 'ecs/credential_spec_config.rb', line 19 def location @location end |
#type_prefix ⇒ String (readonly)
Prefix used for the CredSpec string.
23 24 25 |
# File 'ecs/credential_spec_config.rb', line 23 def type_prefix @type_prefix end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'ecs/credential_spec_config.rb', line 25 def self.jsii_properties { :location => "location", :type_prefix => "typePrefix", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ecs/credential_spec_config.rb', line 32 def to_jsii result = {} result.merge!({ "location" => @location, "typePrefix" => @type_prefix, }) result.compact end |