Payload - Amazon IoT Events
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).

Payload

Information needed to configure the payload.

By default, Amazon IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression.

Contents

contentExpression

The content of the payload. You can use a string expression that includes quoted strings ('<string>'), variables ($variable.<variable-name>), input values ($input.<input-name>.<path-to-datum>), string concatenations, and quoted strings that contain ${} as the content. The recommended maximum size of a content expression is 1 KB.

Type: String

Length Constraints: Minimum length of 1.

Required: Yes

type

The value of the payload type can be either STRING or JSON.

Type: String

Valid Values: STRING | JSON

Required: Yes

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: