Class: AWSCDK::CloudAssemblySchema::Tag
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudAssemblySchema::Tag
- Defined in:
- cloud_assembly_schema/tag.rb
Overview
Metadata Entry spec for stack tag.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
Tag key.
-
#value ⇒ String
readonly
Tag value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ Tag
constructor
A new instance of Tag.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ Tag
Returns a new instance of Tag.
9 10 11 12 13 14 |
# File 'cloud_assembly_schema/tag.rb', line 9 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
#key ⇒ String (readonly)
Tag key.
(In the actual file on disk this will be cased as "Key", and the structure is patched to match this structure upon loading: https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)
23 24 25 |
# File 'cloud_assembly_schema/tag.rb', line 23 def key @key end |
#value ⇒ String (readonly)
Tag value.
(In the actual file on disk this will be cased as "Value", and the structure is patched to match this structure upon loading: https://github.com/aws/aws-cdk/blob/4aadaa779b48f35838cccd4e25107b2338f05547/packages/%40aws-cdk/cloud-assembly-schema/lib/manifest.ts#L137)
31 32 33 |
# File 'cloud_assembly_schema/tag.rb', line 31 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
33 34 35 36 37 38 |
# File 'cloud_assembly_schema/tag.rb', line 33 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'cloud_assembly_schema/tag.rb', line 40 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |