ThingTypePropertiesProperty Struct
The ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.
| 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 thingTypePropertiesProperty: iot.CfnThingType.ThingTypePropertiesProperty = {
mqtt5Configuration: {
propagatingAttributes: [{
userPropertyKey: 'userPropertyKey',
// the properties below are optional
connectionAttribute: 'connectionAttribute',
thingAttribute: 'thingAttribute',
}],
},
searchableAttributes: ['searchableAttributes'],
thingTypeDescription: 'thingTypeDescription',
};
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
thing_type_properties_property = iot.CfnThingType.ThingTypePropertiesProperty(
mqtt5_configuration=iot.CfnThingType.Mqtt5ConfigurationProperty(
propagating_attributes=[iot.CfnThingType.PropagatingAttributeProperty(
user_property_key="userPropertyKey",
# the properties below are optional
connection_attribute="connectionAttribute",
thing_attribute="thingAttribute"
)]
),
searchable_attributes=["searchableAttributes"],
thing_type_description="thingTypeDescription"
)
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.*;
ThingTypePropertiesProperty thingTypePropertiesProperty = ThingTypePropertiesProperty.builder()
.mqtt5Configuration(Mqtt5ConfigurationProperty.builder()
.propagatingAttributes(List.of(PropagatingAttributeProperty.builder()
.userPropertyKey("userPropertyKey")
// the properties below are optional
.connectionAttribute("connectionAttribute")
.thingAttribute("thingAttribute")
.build()))
.build())
.searchableAttributes(List.of("searchableAttributes"))
.thingTypeDescription("thingTypeDescription")
.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 thingTypePropertiesProperty = new ThingTypePropertiesProperty {
Mqtt5Configuration = new Mqtt5ConfigurationProperty {
PropagatingAttributes = new [] { new PropagatingAttributeProperty {
UserPropertyKey = "userPropertyKey",
// the properties below are optional
ConnectionAttribute = "connectionAttribute",
ThingAttribute = "thingAttribute"
} }
},
SearchableAttributes = new [] { "searchableAttributes" },
ThingTypeDescription = "thingTypeDescription"
};
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"
thingTypePropertiesProperty := &ThingTypePropertiesProperty{
Mqtt5Configuration: &Mqtt5ConfigurationProperty{
PropagatingAttributes: []interface{}{
&PropagatingAttributeProperty{
UserPropertyKey: jsii.String("userPropertyKey"),
// the properties below are optional
ConnectionAttribute: jsii.String("connectionAttribute"),
ThingAttribute: jsii.String("thingAttribute"),
},
},
},
SearchableAttributes: []*string{
jsii.String("searchableAttributes"),
},
ThingTypeDescription: jsii.String("thingTypeDescription"),
}
Properties
mqtt5ConfigurationoptionalIResolvable | CfnThingType.mqtt5_configurationoptionaltyping.Union[IResolvable, Mqtt5ConfigurationProperty]mqtt5ConfigurationoptionalIResolvableMqtt5ConfigurationoptionalIResolvableMqtt5Configurationoptionalinterface{} #The configuration to add user-defined properties to enrich MQTT 5 messages.
searchableAttributesoptionalstring[]searchable_attributesoptionaltyping.List[str]searchableAttributesoptionalList<String>SearchableAttributesoptionalstring[]SearchableAttributesoptional*[]*string #A list of searchable thing attribute names.
thingTypeDescriptionoptionalstringthing_type_descriptionoptionalstrthingTypeDescriptionoptionalStringThingTypeDescriptionoptionalstringThingTypeDescriptionoptional*string #The description of the thing type.