class AWS::SNS::SubscriptionCollection
collect(&:endpoint)
select { |s| s.protocol == :sqs }.
topic.subscriptions.
# owned by this account
# get the ARNs of all SQS queues with subscriptions to topics
account. For example:
Represents the collection of all subscriptions for the AWS
def [] arn
-
(Subscription)
-
Parameters:
-
arn
(String
) -- The subscription ARN.
def [] arn Subscription.new(arn, :config => config) end
def _each_item next_token, options, &block
-
(nil)
-
Other tags:
- Yieldparam: subscription - Each of the
def _each_item next_token, options, &block options[:next_token] = next_token if next_token resp = client.send(client_method, options.merge(request_options)) resp.data[:subscriptions].each do |sub| subscription = Subscription.new( sub[:subscription_arn], :endpoint => sub[:endpoint], :protocol => sub[:protocol].tr('-','_').to_sym, :owner_id => sub[:owner], :topic_arn => sub[:topic_arn], :config => config) yield(subscription) end resp.data[:next_token] end
def client_method
def client_method :list_subscriptions end
def request_options
def request_options {} end