Class: AWSCDK::AmazonMQ::CfnBroker::TagsEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
amazon_mq/cfn_broker.rb

Overview

Create tags when creating the broker.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ TagsEntryProperty

Returns a new instance of TagsEntryProperty.

Parameters:

  • key (String)
  • value (String)


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

#keyString (readonly)



1226
1227
1228
# File 'amazon_mq/cfn_broker.rb', line 1226

def key
  @key
end

#valueString (readonly)



1229
1230
1231
# File 'amazon_mq/cfn_broker.rb', line 1229

def value
  @value
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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