AWS::IoT::Thing AttributePayload - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::IoT::Thing AttributePayload

The AttributePayload property specifies up to three attributes for an Amazon IoT as key-value pairs. AttributePayload is a property of the AWS::IoT::Thing resource.

Syntax

To declare this entity in your Amazon 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