Class: AWSCDK::ECS::CredentialSpecConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/credential_spec_config.rb

Overview

Configuration for a credential specification (CredSpec) used for a ECS container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, type_prefix:) ⇒ CredentialSpecConfig

Returns a new instance of CredentialSpecConfig.

Parameters:

  • location (String)

    Location of the CredSpec file.

  • type_prefix (String)

    Prefix used for the CredSpec string.



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

#locationString (readonly)

Location of the CredSpec file.

Returns:

  • (String)


19
20
21
# File 'ecs/credential_spec_config.rb', line 19

def location
  @location
end

#type_prefixString (readonly)

Prefix used for the CredSpec string.

Returns:

  • (String)


23
24
25
# File 'ecs/credential_spec_config.rb', line 23

def type_prefix
  @type_prefix
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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