Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

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

Copy
{ "Attributes" : { String:String, ... } }

YAML

Copy
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

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

YAML

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

On this page: