Class: AWSCDK::IoT::CfnThing::AttributePayloadProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes: nil) ⇒ AttributePayloadProperty

Returns a new instance of AttributePayloadProperty.

Parameters:

  • attributes (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    A JSON string containing up to three key-value pair in JSON format. For example:.



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

#attributesAWSCDK::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_propertiesObject



572
573
574
575
576
# File 'io_t/cfn_thing.rb', line 572

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

Instance Method Details

#to_jsiiObject



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