Method: Awspec::Type::SnsTopic#has_subscription?

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

#has_subscription?(subscribed_arn) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
29
# File 'lib/awspec/type/sns_topic.rb', line 26

def has_subscription?(subscribed_arn)
  fetch_subscriptions
  @subscriptions.key?(subscribed_arn.to_sym)
end