Class: AWSCDK::IoT::CfnThingGroup::ThingGroupPropertiesProperty

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

Overview

Thing group properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_payload: nil, thing_group_description: nil) ⇒ ThingGroupPropertiesProperty

Returns a new instance of ThingGroupPropertiesProperty.

Parameters:



646
647
648
649
650
651
# File 'io_t/cfn_thing_group.rb', line 646

def initialize(attribute_payload: nil, thing_group_description: nil)
  @attribute_payload = attribute_payload.is_a?(Hash) ? ::AWSCDK::IoT::CfnThingGroup::AttributePayloadProperty.new(**attribute_payload.transform_keys(&:to_sym)) : attribute_payload
  Jsii::Type.check_type(@attribute_payload, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuVGhpbmdHcm91cC5BdHRyaWJ1dGVQYXlsb2FkUHJvcGVydHkifV19fQ==")), "attributePayload") unless @attribute_payload.nil?
  @thing_group_description = thing_group_description
  Jsii::Type.check_type(@thing_group_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "thingGroupDescription") unless @thing_group_description.nil?
end

Instance Attribute Details

#attribute_payloadAWSCDK::IResolvable, ... (readonly)

The thing group attributes in JSON format.



657
658
659
# File 'io_t/cfn_thing_group.rb', line 657

def attribute_payload
  @attribute_payload
end

#thing_group_descriptionString? (readonly)

The thing group description.



662
663
664
# File 'io_t/cfn_thing_group.rb', line 662

def thing_group_description
  @thing_group_description
end

Class Method Details

.jsii_propertiesObject



664
665
666
667
668
669
# File 'io_t/cfn_thing_group.rb', line 664

def self.jsii_properties
  {
    :attribute_payload => "attributePayload",
    :thing_group_description => "thingGroupDescription",
  }
end

Instance Method Details

#to_jsiiObject



671
672
673
674
675
676
677
678
# File 'io_t/cfn_thing_group.rb', line 671

def to_jsii
  result = {}
  result.merge!({
    "attributePayload" => @attribute_payload,
    "thingGroupDescription" => @thing_group_description,
  })
  result.compact
end