Class: AWSCDK::BCMDataExports::CfnExport::ResourceTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BCMDataExports::CfnExport::ResourceTagProperty
- Defined in:
- bcm_data_exports/cfn_export.rb
Overview
The tag structure that contains a tag key and value.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key that's associated with the tag.
-
#value ⇒ String
readonly
The value that's associated with the tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ ResourceTagProperty
constructor
A new instance of ResourceTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ ResourceTagProperty
Returns a new instance of ResourceTagProperty.
738 739 740 741 742 743 |
# File 'bcm_data_exports/cfn_export.rb', line 738 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)
The key that's associated with the tag.
749 750 751 |
# File 'bcm_data_exports/cfn_export.rb', line 749 def key @key end |
#value ⇒ String (readonly)
The value that's associated with the tag.
754 755 756 |
# File 'bcm_data_exports/cfn_export.rb', line 754 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
756 757 758 759 760 761 |
# File 'bcm_data_exports/cfn_export.rb', line 756 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
763 764 765 766 767 768 769 770 |
# File 'bcm_data_exports/cfn_export.rb', line 763 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |