This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::IoT::TopicRule SnsAction
Describes an action to publish to an Amazon SNS topic.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "MessageFormat" :String, "RoleArn" :String, "TargetArn" :String}
YAML
MessageFormat:StringRoleArn:StringTargetArn: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 Allowed values: RAW | JSONUpdate 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