Mqtt5ConfigurationProperty
Struct External
The configuration to add user-defined properties to enrich MQTT 5 messages.
| Source | |
|---|---|
| Type last changed |
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 mqtt5ConfigurationProperty: iot.CfnThingType.Mqtt5ConfigurationProperty = {
propagatingAttributes: [{
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
mqtt5_configuration_property = iot.CfnThingType.Mqtt5ConfigurationProperty(
propagating_attributes=[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.*;
Mqtt5ConfigurationProperty mqtt5ConfigurationProperty = Mqtt5ConfigurationProperty.builder()
.propagatingAttributes(List.of(PropagatingAttributeProperty.builder()
.userPropertyKey("userPropertyKey")
// the properties below are optional
.connectionAttribute("connectionAttribute")
.thingAttribute("thingAttribute")
.build()))
.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 mqtt5ConfigurationProperty = new Mqtt5ConfigurationProperty {
PropagatingAttributes = new [] { 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"
mqtt5ConfigurationProperty := &Mqtt5ConfigurationProperty{
PropagatingAttributes: []interface{}{
&PropagatingAttributeProperty{
UserPropertyKey: jsii.String("userPropertyKey"),
// the properties below are optional
ConnectionAttribute: jsii.String("connectionAttribute"),
ThingAttribute: jsii.String("thingAttribute"),
},
},
}
Properties
propagatingAttributesoptionalIResolvable | IResolvable | CfnThingType.propagating_attributesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PropagatingAttributeProperty]]]propagatingAttributesoptionalIResolvablePropagatingAttributesoptionalIResolvablePropagatingAttributesoptionalinterface{} #An object that represents the connection attribute, the thing attribute, and the MQTT 5 user property key.