class AWS::SNS
This class is the starting point for working with Amazon Simple Notification Service (SNS).
To use Amazon SNS
you must first [sign up here](aws.amazon.com/sns/).
For more information about Amazon SNS:
-
[Amazon SNS](aws.amazon.com/sns/)
-
[Amazon
SNS
Documentation](aws.amazon.com/documentation/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')
@!attribute [r] client
@return [Client] the low-level SNS client object
Public Instance Methods
subscriptions()
click to toggle source
@return [SubscriptionCollection] Returns a subscription
collection for managing SNS subscriptions.
# File lib/aws/sns.rb, line 71 def subscriptions SubscriptionCollection.new(:config => config) end
topics()
click to toggle source
@return [TopicCollection] Returns a topic collection for managing
SNS topics.
# File lib/aws/sns.rb, line 65 def topics TopicCollection.new(:config => config) end