Class: AWSCDK::IoT::CfnThing::AttributePayloadProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnThing::AttributePayloadProperty
- Defined in:
- io_t/cfn_thing.rb
Overview
The AttributePayload property specifies up to three attributes for an AWS IoT as key-value pairs.
AttributePayload is a property of the AWS::IoT::Thing resource.
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.
559 560 561 562 |
# File 'io_t/cfn_thing.rb', line 559 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\"}}
570 571 572 |
# File 'io_t/cfn_thing.rb', line 570 def attributes @attributes end |
Class Method Details
.jsii_properties ⇒ Object
572 573 574 575 576 |
# File 'io_t/cfn_thing.rb', line 572 def self.jsii_properties { :attributes => "attributes", } end |
Instance Method Details
#to_jsii ⇒ Object
578 579 580 581 582 583 584 |
# File 'io_t/cfn_thing.rb', line 578 def to_jsii result = {} result.merge!({ "attributes" => @attributes, }) result.compact end |