Class: AWSCDK::IoT::CfnThingGroup::AttributePayloadProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnThingGroup::AttributePayloadProperty
- Defined in:
- io_t/cfn_thing_group.rb
Overview
The attribute payload.
Instance Attribute Summary collapse
-
#attributes ⇒ AWSCDK::IResolvable, ...
readonly
A JSON string containing up to three key-value pair in JSON format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes: nil) ⇒ AttributePayloadProperty
constructor
A new instance of AttributePayloadProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attributes: nil) ⇒ AttributePayloadProperty
Returns a new instance of AttributePayloadProperty.
610 611 612 613 |
# File 'io_t/cfn_thing_group.rb', line 610 def initialize(attributes: nil) @attributes = attributes Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "attributes") unless @attributes.nil? end |
Instance Attribute Details
#attributes ⇒ AWSCDK::IResolvable, ... (readonly)
A JSON string containing up to three key-value pair in JSON format. For example:.
{\"attributes\":{\"string1\":\"string2\"}}
621 622 623 |
# File 'io_t/cfn_thing_group.rb', line 621 def attributes @attributes end |
Class Method Details
.jsii_properties ⇒ Object
623 624 625 626 627 |
# File 'io_t/cfn_thing_group.rb', line 623 def self.jsii_properties { :attributes => "attributes", } end |
Instance Method Details
#to_jsii ⇒ Object
629 630 631 632 633 634 635 |
# File 'io_t/cfn_thing_group.rb', line 629 def to_jsii result = {} result.merge!({ "attributes" => @attributes, }) result.compact end |