EC2 Client

SaltwaterC edited this page Nov 15, 2011 · 10 revisions

Client loader

aws.load('ec2', [accessKeyId], [secretAccessKey])

Available low level method

ec2.request(action, [query], callback)

The 'action' argument is the action required by the EC2 query API itself.

Available helpers

Usage mode

// init the client
var ec2 = require('aws2js').load('ec2', accessKeyId, secretAccessKey);

// call something of the EC2 query API
ec2.request('action', {foo: 'bar'}, function (error, response) {
	if (error) {
	} else {