awssum-amazon-sns

AwsSum plugin for Amazon Simple Notification Service (SNS).

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.

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');
});

Docs: AddPermission on AWS

Docs: ConfirmSubscription on AWS

Docs: CreateTopic on AWS

Docs: DeleteTopic on AWS

Docs: GetSubscriptionAttributes on AWS

Docs: GetTopicAttributes on AWS

Docs: ListSubscriptions on AWS

Docs: ListSubscriptionsByTopic on AWS

Docs: ListTopics on AWS

Docs: Publish on AWS

Docs: RemovePermission on AWS

Docs: SetSubscriptionAttributes on AWS

Docs: SetTopicAttributes on AWS

Docs: Subscribe on AWS

Docs: Unsubscribe on AWS

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)