AWS::IoT::Thing AttributePayload - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::IoT::Thing AttributePayload

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.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "Attributes" : {Key: Value, ...} }

YAML

Attributes: Key: Value

Properties

Attributes

A JSON string containing up to three key-value pair in JSON format. For example:

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

Required: No

Type: Object of String

Pattern: [a-zA-Z0-9_.,@/:#-]+

Update requires: No interruption

Examples

The following example declares an attribute payload with three attributes.

JSON

{ "AttributePayload":{ "Attributes":{ "myAttributeA":{ "Ref":"MyAttributeValueA" }, "myAttributeB":{ "Ref":"MyAttributeValueB" }, "myAttributeC":{ "Ref":"MyAttributeValueC" } } } }

YAML

AttributePayload: Attributes: myAttributeA: Ref: MyAttributeValueA myAttributeB: Ref: MyAttributeValueB myAttributeC: Ref: MyAttributeValueC