aws-api

0.2.3 • Public • Published

node-aws

node-aws is an easy-to-use AWS client for node.

Usage

var aws = require('node-aws').createClient(
  'yourAccessKeyId',
  'yourSecretAccessKey',
  // You can optionally provide a hash of service endpoints,
  // but they each have reasonable defaults (typically US-East-1).
  {
    'sdb': 'sdb.eu-west-1.amazonaws.com',
  }
);

// All method request return a promise that will be fulfilled
// once the response is received and parsed.
aws.sdb.putAttributes(
  {
    domainName: "test",
    itemName: "item1",
    attributes: [
      {
        name: 'foo',
        value: 'bar',
      },
    ],
  },
  // You can optionally override the default endpoint on a
  // per-request basis as well.
  'sdb.ap-southeast-1.amazonaws.com'
).onSuccess(function() {
  // it worked!
  console.log(this.requestId, this.data);
}).onFailure(function() {
  // uh oh!
  console.log(this.requestId, this.error);
});

Status

A potentially outdated list of supported AWS services and methods is provided below:

EC2 (Elastic Compute Cloud)

  • allocateAddress
  • associateAddress
  • createKeyPair
  • deleteKeyPair
  • describeAddresses
  • describeAvailabilityZones
  • describeInstances
  • describeKeyPairs
  • describeRegions
  • disassociateAddress
  • getConsoleOutput
  • importKeyPair
  • rebootInstances
  • releaseAddress
  • startInstances
  • stopInstances

Route53

  • changeResourceRecordSets
  • createHostedZone
  • deleteHostedZone
  • getChange
  • getHostedZone
  • listHostedZones
  • listResourceRecordSets

S3 (Simple Storage Service)

  • createBucket
  • deleteBucket
  • deleteObject
  • getObject
  • listAllMyBuckets
  • listBucket
  • putObject

SES (Simple Email Service)

  • deleteVerifiedEmailAddress
  • getSendQuota
  • getSendStatistics
  • listVerifiedEmailAddresses
  • sendEmail
  • verifyEmailAddress

SimpleDB

  • batchDeleteAttributes
  • batchPutAttributes
  • createDomain
  • deleteAttributes
  • deleteDomain
  • domainMetadata
  • getAttributes
  • listDomains
  • putAttributes
  • select

SNS (Simple Notification Service)

  • addPermission
  • confirmSubscription
  • createTopic
  • deleteTopic
  • getSubscriptionAttributes
  • getTopicAttributes
  • listSubscriptions
  • listSubscriptionsByTopic
  • listTopics
  • publish
  • removePermission
  • setSubscriptionAttributes
  • setTopicAttributes
  • subscribe
  • unsubscribe

SQS (Simple Queue Service)

  • createQueue
  • deleteQueue
  • listQueues
  • getQueueUrl
  • getQueueAttributes
  • setQueueAttributes
  • addPermission
  • removePermission
  • sendMessage
  • sendMessageBatch
  • receiveMessage
  • deleteMessage
  • deleteMessageBatch
  • changeMessageVisibility
  • changeMessageVisibilityBatch

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.3
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.3
    4
  • 0.2.2
    0
  • 0.2.1
    0
  • 0.2.0
    0

Package Sidebar

Install

npm i aws-api

Weekly Downloads

4

Version

0.2.3

License

none

Last publish

Collaborators

  • ssimon