---
type: resource-type
title: Subscription
description: aws resource type AWS::SNS::Subscription
name: Subscription
lexicon: aws
resource_type: AWS::SNS::Subscription
---
`AWS::SNS::Subscription`, a resource type of the aws lexicon.

## Properties

- `Protocol` (`string`, required): The subscription's protocol.
- `TopicArn` (`string`, required): The ARN of the topic to subscribe to.
- `Arn` (`string`, optional): Arn of the subscription
- `DeliveryPolicy` (`Record<string, unknown>`, optional): The delivery policy JSON assigned to the subscription. Enables the subscriber to define the message delivery retry strategy in the case of an HTTP/S endpoint subscribed to the topic.
- `Endpoint` (`string`, optional): The subscription's endpoint. The endpoint value depends on the protocol that you specify.
- `FilterPolicy` (`Record<string, unknown>`, optional): The filter policy JSON assigned to the subscription. Enables the subscriber to filter out unwanted messages.
- `FilterPolicyScope` (`string`, optional): This attribute lets you choose the filtering scope by using one of the following string value types: MessageAttributes (default) and MessageBody.
- `RawMessageDelivery` (`boolean`, optional): When set to true, enables raw message delivery. Raw messages don't contain any JSON formatting and can be sent to Amazon SQS and HTTP/S endpoints.
- `RedrivePolicy` (`Record<string, unknown>`, optional): When specified, sends undeliverable messages to the specified Amazon SQS dead-letter queue. Messages that can't be delivered due to client errors are held in the dead-letter queue for further analysis or reprocessing.
- `Region` (`string`, optional): For cross-region subscriptions, the region in which the topic resides.If no region is specified, AWS CloudFormation uses the region of the caller as the default.
- `ReplayPolicy` (`Record<string, unknown>`, optional): Specifies whether Amazon SNS resends the notification to the subscription when a message's attribute changes.
- `SubscriptionRoleArn` (`string`, optional): This property applies only to Amazon Data Firehose delivery stream subscriptions.

## Attributes

- `Arn`
