NodeJS module to talk to Amazon Simple Notification Service (SNS).
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
LICENSE
README.md
awssum-amazon-sns.js
config.js
package.json

README.md

NOTE: AwsSum is now deprecated. Please use aws-sdk instead.

awssum-amazon-sns

This is an AwsSum plugin!

You'll need to add awssum-amazon-sns to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.

Example

List all your topics:

var fmt = require('fmt');
var amazonSns = require('awssum-amazon-sns');

var sns = new amazonSns.Sns({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : amazonSns.US_EAST_1,
});

sns.ListTopics(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

Operations

AddPermission

Docs: AddPermission on AWS

ConfirmSubscription

Docs: ConfirmSubscription on AWS

CreateTopic

Docs: CreateTopic on AWS

DeleteTopic

Docs: DeleteTopic on AWS

GetSubscriptionAttributes

Docs: GetSubscriptionAttributes on AWS

GetTopicAttributes

Docs: GetTopicAttributes on AWS

ListSubscriptions

Docs: ListSubscriptions on AWS

ListSubscriptionsByTopic

Docs: ListSubscriptionsByTopic on AWS

ListTopics

Docs: ListTopics on AWS

Publish

Docs: Publish on AWS

RemovePermission

Docs: RemovePermission on AWS

SetSubscriptionAttributes

Docs: SetSubscriptionAttributes on AWS

SetTopicAttributes

Docs: SetTopicAttributes on AWS

Subscribe

Docs: Subscribe on AWS

Unsubscribe

Docs: Unsubscribe on AWS

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)