Class: AWSCDK::IoT::CfnTopicRule::UserPropertyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

A key-value pair that you define in the header.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ UserPropertyProperty

Returns a new instance of UserPropertyProperty.

Parameters:

  • key (String)

    A key to be specified in UserProperty .

  • value (String)

    A value to be specified in UserProperty .



3145
3146
3147
3148
3149
3150
# File 'io_t/cfn_topic_rule.rb', line 3145

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)

A key to be specified in UserProperty .



3156
3157
3158
# File 'io_t/cfn_topic_rule.rb', line 3156

def key
  @key
end

#valueString (readonly)

A value to be specified in UserProperty .



3161
3162
3163
# File 'io_t/cfn_topic_rule.rb', line 3161

def value
  @value
end

Class Method Details

.jsii_propertiesObject



3163
3164
3165
3166
3167
3168
# File 'io_t/cfn_topic_rule.rb', line 3163

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

Instance Method Details

#to_jsiiObject



3170
3171
3172
3173
3174
3175
3176
3177
# File 'io_t/cfn_topic_rule.rb', line 3170

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