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

==   eql?   exists?   inspect   new   unsubscribe  

Included Modules

Model

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.
owner_id  [R]  @return [String] The AWS account ID of the subscription owner.
protocol  [R]  @return [String] The protocol. Possible values:
 * +:http+
 * +:https+
 * +:email+
 * +:email_json+
 * +:sqs+
topic  [R]  @return [Topic] The topic to which the endpoint is subscribed.

Public Class methods

Public Instance methods

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

  resource ARN.
eql?(other)

Alias for #==

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

@private

Deletes this subscription. @return [nil]

[Validate]