AWS CloudFormation
User Guide (Version )

AWS::IoT::TopicRule SnsAction

Describes an action to publish to an Amazon SNS topic.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

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

YAML

MessageFormat: String RoleArn: String TargetArn: String

Properties

MessageFormat

(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. For more information, see Amazon SNS Message and JSON Formats in the Amazon Simple Notification Service Developer Guide.

Required: No

Type: String

Update requires: No interruption

RoleArn

The ARN of the IAM role that grants access.

Required: Yes

Type: String

Update requires: No interruption

TargetArn

The ARN of the SNS topic.

Required: Yes

Type: String

Update requires: No interruption

On this page: