Skip to content
v2.278.0

PropagatingAttributeProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const propagatingAttributeProperty: iot.CfnThingType.PropagatingAttributeProperty = {
  userPropertyKey: 'userPropertyKey',

  // the properties below are optional
  connectionAttribute: 'connectionAttribute',
  thingAttribute: 'thingAttribute',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

propagating_attribute_property = iot.CfnThingType.PropagatingAttributeProperty(
    user_property_key="userPropertyKey",

    # the properties below are optional
    connection_attribute="connectionAttribute",
    thing_attribute="thingAttribute"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

PropagatingAttributeProperty propagatingAttributeProperty = PropagatingAttributeProperty.builder()
        .userPropertyKey("userPropertyKey")

        // the properties below are optional
        .connectionAttribute("connectionAttribute")
        .thingAttribute("thingAttribute")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var propagatingAttributeProperty = new PropagatingAttributeProperty {
    UserPropertyKey = "userPropertyKey",

    // the properties below are optional
    ConnectionAttribute = "connectionAttribute",
    ThingAttribute = "thingAttribute"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

propagatingAttributeProperty := &PropagatingAttributeProperty{
	UserPropertyKey: jsii.String("userPropertyKey"),

	// the properties below are optional
	ConnectionAttribute: jsii.String("connectionAttribute"),
	ThingAttribute: jsii.String("thingAttribute"),
}

Properties ​

connectionAttributeoptionalstringconnection_attributeoptionalstrconnectionAttributeoptionalStringConnectionAttributeoptionalstringConnectionAttributeoptional*string #
The attribute associated with the connection details.
thingAttributeoptionalstringthing_attributeoptionalstrthingAttributeoptionalStringThingAttributeoptionalstringThingAttributeoptional*string #
The thing attribute that is propagating for MQTT 5 message enrichment.
userPropertyKeystringuser_property_keystruserPropertyKeyStringUserPropertyKeystringUserPropertyKey*string required #
The key of the MQTT 5 user property, which is a key-value pair.