Class: AWS::SNS

Inherits:
Object
  • Object
show all
Includes:
Core::ServiceInterface
Defined in:
lib/aws/sns.rb,
lib/aws/sns/topic.rb,
lib/aws/sns/client.rb,
lib/aws/sns/errors.rb,
lib/aws/sns/policy.rb,
lib/aws/sns/request.rb,
lib/aws/sns/subscription.rb,
lib/aws/sns/topic_collection.rb,
lib/aws/sns/has_delivery_policy.rb,
lib/aws/sns/subscription_collection.rb,
lib/aws/sns/topic_subscription_collection.rb

Overview

This class is the starting point for working with Amazon Simple Notification Service (SNS).

To use Amazon SNS you must first sign up here.

For more information about Amazon SNS:

Credentials

You can setup default credentials for all AWS services via AWS.config:

AWS.config(
  :access_key_id => 'YOUR_ACCESS_KEY_ID',
  :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')

Or you can set them directly on the SNS interface:

sns = AWS::SNS.new(
  :access_key_id => 'YOUR_ACCESS_KEY_ID',
  :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')

Defined Under Namespace

Modules: Errors, HasDeliveryPolicy Classes: Client, Policy, Request, Subscription, SubscriptionCollection, Topic, TopicCollection, TopicSubscriptionCollection

Instance Method Summary collapse

Methods included from Core::ServiceInterface

included, #initialize, #inspect

Instance Method Details

#subscriptionsSubscriptionCollection

Returns a subscription collection for managing SNS subscriptions.

Returns:


69
70
71
# File 'lib/aws/sns.rb', line 69

def subscriptions
  SubscriptionCollection.new(:config => config)
end

#topicsTopicCollection

Returns a topic collection for managing SNS topics.

Returns:

  • (TopicCollection)

    Returns a topic collection for managing SNS topics.


63
64
65
# File 'lib/aws/sns.rb', line 63

def topics
  TopicCollection.new(:config => config)
end