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}.

Methods

Included Modules

Core::Model HasDeliveryPolicy

Attributes

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`

Public Class methods

Public Instance methods

==(other)

Alias for eql?

@return [Boolean] Returns true if the subscription confirmation

  request was authenticated.

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.

@return [Boolean] Returns true if the subscriptions have the same

  resource ARN.

@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.

@api private

@return [String] The AWS account ID of the subscription owner.

@return [Topic]

@return [String]

Deletes this subscription. @return [nil]

Protected Instance methods

[Validate]