aws::sns-subscription¶
Creates a SNS subscription to a topic.
Example¶
aws::sns-subscription sns-subscription-example
protocol: "sqs"
endpoint: $(aws::sqs-queue sqs-example | arn)
topic: $(aws::sns-topic sns-topic-example)
filter-policy: "filter-policy.json"
raw-message-delivery: true
end
Attributes¶
Attribute | Description |
---|---|
endpoint | The endpoint of the resource subscribed to the topic. (Required) |
protocol | The protocol associated with the endpoint. (Required) |
topic | The topic resource to subscribe to. (Required) |
delivery-policy | The delivery retry policy for the subscription. Can be json file or json blob. |
filter-policy | The filter policy for the subscription. Can be json file or json blob. |
raw-message-delivery | Allow raw message delivery. Defaults to false. |
Outputs¶
Attribute | Description |
---|---|
subscription-arn | The arn of the subscription. |