# AttributePayloadProperty

The AttributePayload property specifies up to three attributes for an AWS IoT as key-value pairs.

AttributePayload is a property of the [AWS::IoT::Thing](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html) resource.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 attributePayloadProperty: iot.CfnThing.AttributePayloadProperty = {
  attributes: {
    attributesKey: 'attributes',
  },
};
```

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

attribute_payload_property = iot.CfnThing.AttributePayloadProperty(
    attributes={
        "attributes_key": "attributes"
    }
)
```

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.*;

AttributePayloadProperty attributePayloadProperty = AttributePayloadProperty.builder()
        .attributes(Map.of(
                "attributesKey", "attributes"))
        .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 attributePayloadProperty = new AttributePayloadProperty {
    Attributes = new Dictionary<string, string> {
        { "attributesKey", "attributes" }
    }
};
```

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"

attributePayloadProperty := &AttributePayloadProperty{
	Attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
}
```

## Properties

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — A JSON string containing up to three key-value pair in JSON format. For example:.

  `{\"attributes\":{\"string1\":\"string2\"}}`
