Class | AWS::SNS::Subscription |
In: |
lib/aws/sns/subscription.rb
|
Parent: | Object |
Represents a subscription of a single endpoint to an SNS topic. To create a subscription, use the {Topic#subscribe} method. Depending on the endpoint type, you may also need to use {Topic#confirm_subscription}.
arn | [R] | @return [String] The ARN of the subscription. |
endpoint | [R] | @return [String] The endpoint. This can be an HTTP or HTTPS URL, an e-mail address, or a queue ARN. |
protocol | [R] |
@return [String] The protocol. Possible values:
* +:http+ * +:https+ * +:email+ * +:email_json+ * +:sqs+ |
You can get the parsed JSON hash from {delivery_policy}. @return [nil,String] Returns the delivery policy JSON string.
You can get the parsed JSON hash from {effective_delivery_policy}. @return [nil,String] Returns the effective delivery policy JSON string.
@note This method requests the entire list of subscriptions
for the topic (if known) or the account (if the topic is not known). It can be expensive if the number of subscriptions is high.
@return [Boolean] Returns true if the subscription exists.