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

AWS IoT Sns Action

Sns is a property of the Actions property that describes an action that publishes data to an SNS topic.

Syntax

JSON

Copy
{ "MessageFormat": String, "RoleArn": String, "TargetArn": String }

YAML

Copy
MessageFormat: String RoleArn: String TargetArn: String

Properties

MessageFormat

The format of the published message. Amazon SNS uses this setting to determine whether it should parse the payload and extract the platform-specific bits from the payload.

For more information, see Appendix: Message and JSON Formats in the Amazon Simple Notification Service Developer Guide.

Required: No

Type: String

RoleArn

The ARN of the IAM role that grants access to Amazon SNS.

Required: Yes

Type: String

TargetArn

The ARN of the Amazon SNS topic.

Required: Yes

Type: String

On this page: