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 AWS CloudFormation template, use the following syntax:
JSON
{ "Attributes" : {String:String, ...} }
YAML
Attributes:String:String
Properties
Attributes-
A string that contains up to three key–value pairs. Maximum length of 800. Duplicates not allowed.
Required: No
Type: String to string map
Update requires: No interruption
Example
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"
