Class: AWSCDK::AmazonMQ::CfnBroker::TagsEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AmazonMQ::CfnBroker::TagsEntryProperty
- Defined in:
- amazon_mq/cfn_broker.rb
Overview
Create tags when creating the broker.
Instance Attribute Summary collapse
- #key ⇒ String readonly
- #value ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ TagsEntryProperty
constructor
A new instance of TagsEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ TagsEntryProperty
Returns a new instance of TagsEntryProperty.
1217 1218 1219 1220 1221 1222 |
# File 'amazon_mq/cfn_broker.rb', line 1217 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)
1226 1227 1228 |
# File 'amazon_mq/cfn_broker.rb', line 1226 def key @key end |
#value ⇒ String (readonly)
1229 1230 1231 |
# File 'amazon_mq/cfn_broker.rb', line 1229 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1231 1232 1233 1234 1235 1236 |
# File 'amazon_mq/cfn_broker.rb', line 1231 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1238 1239 1240 1241 1242 1243 1244 1245 |
# File 'amazon_mq/cfn_broker.rb', line 1238 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |