AWS::SNS::SubscriptionResource Type definition for AWS::SNS::Subscription
11 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Protocol | string | RequiredCreate-only |
TopicArn | string | RequiredCreate-only |
DeliveryPolicy | objectstring | |
Endpoint | string | Create-only |
FilterPolicy | objectstring | |
FilterPolicyScope | string | |
RawMessageDelivery | boolean | |
RedrivePolicy | objectstring | |
Region | string | Write-only |
ReplayPolicy | objectstring | |
SubscriptionRoleArn | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Arn | string | Arn of the subscription |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SNS::Subscription
Resources:
MyResource:
Type: AWS::SNS::Subscription
Properties:
TopicArn: "arn:aws:service:region:account:resource"
Protocol: "value"Permissions CloudFormation needs in your IAM role to manage this resource.
iam:GetRoleiam:PassRolesns:Subscribesns:GetSubscriptionAttributesiam:GetRoleiam:PassRolesns:SetSubscriptionAttributessns:Unsubscribesns:GetSubscriptionAttributessns:ListSubscriptionsEverything you need to know about SNS on one page. HD quality, print-friendly.
Download Free InfographicArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
EndpointProtocolTopicArn