Skip to content
v2.276.0

AttributePayloadProperty Struct ​

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 resource.

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 attributePayloadProperty: iot.CfnThing.AttributePayloadProperty = {
  attributes: {
    attributesKey: 'attributes',
  },
};
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
// 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();
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" }
    }
};
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 ​

attributesoptionalIResolvable | { [key: string]: string }attributesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{}#
A JSON string containing up to three key-value pair in JSON format. For example:.

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