# ThingTypePropertiesProperty

The ThingTypeProperties contains information about the thing type including: a thing type description, and a list of searchable thing attribute names.

- Source: Generated at build time
- Type last changed: v2.169.0 · 21 Nov 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `mqtt5Configuration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnThingType.Mqtt5ConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnThingType.Mqtt5ConfigurationProperty.html) — The configuration to add user-defined properties to enrich MQTT 5 messages.

- `searchableAttributes`: string[] — A list of searchable thing attribute names.

- `thingTypeDescription`: string — The description of the thing type.
