class AWS::SNS::TopicSubscriptionCollection

Represents the collection of all subscriptions for a particular topic. For example:

# get the e-mail addressess that receive plain-text
# messages sent to the topic
topic.subscriptions.
  select { |s| s.protocol == :email }.
  map(&:endpoint)

Attributes

topic[R]

@return [Topic] The topic to which all the subscriptions belong.

Public Class Methods

new(topic, opts = {}) click to toggle source

@private

# File lib/aws/sns/topic_subscription_collection.rb, line 35
def initialize(topic, opts = {})
  @topic = topic
  super
end

Protected Instance Methods

list_request() click to toggle source

@private

# File lib/aws/sns/topic_subscription_collection.rb, line 42
def list_request
  :list_subscriptions_by_topic
end
request_opts() click to toggle source

@private

# File lib/aws/sns/topic_subscription_collection.rb, line 48
def request_opts
  { :topic_arn => topic.arn }
end