Method: Awspec::Type::SnsTopic#subscribed

Defined in:
lib/awspec/type/sns_topic.rb

#subscribed(subscribed_arn) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/awspec/type/sns_topic.rb', line 31

def subscribed(subscribed_arn)
  subs_key = subscribed_arn.to_sym
  fetch_subscriptions
  raise "'#{subscribed_arn}' is not a valid subscription ARN" unless @subscriptions.key?(subs_key)

  @subscriptions[subs_key]
end