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" :
{
}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