Class: AWSCDK::IoT::CfnThingGroup::AttributePayloadProperty

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

Overview

The attribute payload.

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:.



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

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



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_jsiiObject



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