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)
- The subscription with the given ARN.
Parameters:
-
arn
(String
) -- The ARN of the subscription to retrieve.
def [] arn Subscription.new(arn, :config => config) end
def each
-
(nil)
-
Other tags:
- Yieldparam: subscription - Each of the
def each next_token = nil begin opts = request_opts opts[:next_token] = next_token if next_token resp = client.send(list_request, opts) resp.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 next_token = resp.data[:next_token] end until next_token.nil? nil end
def list_request
def list_request :list_subscriptions end
def request_opts
def request_opts {} end