| « PreviousNext » | |
![]() ![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
The AWS::SNS::Topic type creates an Amazon SNS topic.
{
"DisplayName" : String,
"Subscription" : [ SNS Subscription, ... ]
} A developer-defined string that can be used to identify this SNS topic.
Required: No.
Type: String.
The SNS subscriptions (endpoints) for this topic.
Required: Yes.
Type: List of SNS Subscriptions
When the logical ID of this resource is provided to the Ref intrinsic
function, it returns the resource name.
For more information about using the Ref function, see Ref.
An example of an SNS topic subscribed to by two SQS queues:
"MySNSTopic" : {
"Type" : "AWS::SNS::Topic",
"Properties" : {
"Subscription" : [
{ "Endpoint" : { "Fn::GetAtt" : [ "MyQueue1", "Arn" ] }, "Protocol" : "sqs" },
{ "Endpoint" : { "Fn::GetAtt" : [ "MyQueue2", "Arn" ] }, "Protocol" : "sqs" }
]
}
} Using an AWS CloudFormation Template to Set Up a Topic and an HTTP Endpoint in the Amazon Simple Notification Service Getting Started Guide