Class: AWSCDK::IoT::CfnThingType::PropagatingAttributeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnThingType::PropagatingAttributeProperty
- 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
-
#connection_attribute ⇒ String?
readonly
The attribute associated with the connection details.
-
#thing_attribute ⇒ String?
readonly
The thing attribute that is propagating for MQTT 5 message enrichment.
-
#user_property_key ⇒ String
readonly
The key of the MQTT 5 user property, which is a key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(user_property_key:, connection_attribute: nil, thing_attribute: nil) ⇒ PropagatingAttributeProperty
constructor
A new instance of PropagatingAttributeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(user_property_key:, connection_attribute: nil, thing_attribute: nil) ⇒ PropagatingAttributeProperty
Returns a new instance of PropagatingAttributeProperty.
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_attribute ⇒ String? (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_attribute ⇒ String? (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_key ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |