awssum-amazon-sns

AwsSum plugin for Amazon Simple Notification Service (SNS).

npm install awssum-amazon-sns
10 downloads in the last day
50 downloads in the last week
159 downloads in the last month

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)

npm loves you