Class: AWSCDK::CfnTag

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cfn_tag.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ CfnTag

Returns a new instance of CfnTag.

Parameters:

  • key (String)
  • value (String)


8
9
10
11
12
13
# File 'cfn_tag.rb', line 8

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

Returns:

  • (String)


16
17
18
# File 'cfn_tag.rb', line 16

def key
  @key
end

#valueString (readonly)

Returns:

  • (String)


18
19
20
# File 'cfn_tag.rb', line 18

def value
  @value
end

Class Method Details

.jsii_propertiesObject



20
21
22
23
24
25
# File 'cfn_tag.rb', line 20

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
34
# File 'cfn_tag.rb', line 27

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end