Class: AWSCDK::IoT::CfnTopicRule::UserPropertyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::UserPropertyProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
A key-value pair that you define in the header.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
A key to be specified in
UserProperty. -
#value ⇒ String
readonly
A value to be specified in
UserProperty.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ UserPropertyProperty
constructor
A new instance of UserPropertyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ UserPropertyProperty
Returns a new instance of UserPropertyProperty.
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
#key ⇒ String (readonly)
A key to be specified in UserProperty .
3156 3157 3158 |
# File 'io_t/cfn_topic_rule.rb', line 3156 def key @key end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |