Class: AWSCDK::IoT::CfnThingType::PropagatingAttributeProperty

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

Overview

An object that represents the connection attribute, the thing attribute, and the MQTT 5 user property key.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_property_key:, connection_attribute: nil, thing_attribute: nil) ⇒ PropagatingAttributeProperty

Returns a new instance of PropagatingAttributeProperty.

Parameters:

  • user_property_key (String)

    The key of the MQTT 5 user property, which is a key-value pair.

  • connection_attribute (String, nil) (defaults to: nil)

    The attribute associated with the connection details.

  • thing_attribute (String, nil) (defaults to: nil)

    The thing attribute that is propagating for MQTT 5 message enrichment.



628
629
630
631
632
633
634
635
# File 'io_t/cfn_thing_type.rb', line 628

def initialize(user_property_key:, connection_attribute: nil, thing_attribute: nil)
  @user_property_key = user_property_key
  Jsii::Type.check_type(@user_property_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userPropertyKey")
  @connection_attribute = connection_attribute
  Jsii::Type.check_type(@connection_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionAttribute") unless @connection_attribute.nil?
  @thing_attribute = thing_attribute
  Jsii::Type.check_type(@thing_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "thingAttribute") unless @thing_attribute.nil?
end

Instance Attribute Details

#connection_attributeString? (readonly)

The attribute associated with the connection details.



646
647
648
# File 'io_t/cfn_thing_type.rb', line 646

def connection_attribute
  @connection_attribute
end

#thing_attributeString? (readonly)

The thing attribute that is propagating for MQTT 5 message enrichment.



651
652
653
# File 'io_t/cfn_thing_type.rb', line 651

def thing_attribute
  @thing_attribute
end

#user_property_keyString (readonly)

The key of the MQTT 5 user property, which is a key-value pair.



641
642
643
# File 'io_t/cfn_thing_type.rb', line 641

def user_property_key
  @user_property_key
end

Class Method Details

.jsii_propertiesObject



653
654
655
656
657
658
659
# File 'io_t/cfn_thing_type.rb', line 653

def self.jsii_properties
  {
    :user_property_key => "userPropertyKey",
    :connection_attribute => "connectionAttribute",
    :thing_attribute => "thingAttribute",
  }
end

Instance Method Details

#to_jsiiObject



661
662
663
664
665
666
667
668
669
# File 'io_t/cfn_thing_type.rb', line 661

def to_jsii
  result = {}
  result.merge!({
    "userPropertyKey" => @user_property_key,
    "connectionAttribute" => @connection_attribute,
    "thingAttribute" => @thing_attribute,
  })
  result.compact
end