Class: AWS::SNS

Inherits:
Object
  • Object
show all
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/client/xml.rb,
lib/aws/sns/subscription.rb,
lib/aws/sns/client/options.rb,
lib/aws/sns/topic_collection.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

Classes: Policy, Subscription, SubscriptionCollection, Topic, TopicCollection, TopicSubscriptionCollection

Instance Method Summary collapse

Instance Method Details

#subscriptionsSubscriptionCollection

Returns a subscription collection for managing SNS subscriptions.

Returns:



61
62
63
# File 'lib/aws/sns.rb', line 61

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.



55
56
57
# File 'lib/aws/sns.rb', line 55

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