aws::sns-subscriber¶
Creates a SNS subscriber to a topic.
Example¶
aws::sns-subscriber sns-subscriber-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. Can be json file or json blob. |
| filter-policy | The filter policy. 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. |