-
Notifications
You must be signed in to change notification settings - Fork 35
ELB Client
SaltwaterC edited this page Nov 15, 2011
·
7 revisions
aws.load('elb', [accessKeyId], [secretAccessKey])
elb.request(action, [query], callback)
The 'action' argument is the action required by the ELB query API itself.
- elb.setCredentials(accessKeyId, secretAccessKey)
- elb.setRegion(region)
- elb.setMaxSockets(numberOfSockets)
- elb.getEndPoint()
- elb.getApiVersion()
- elb.setApiVersion(apiVersion)
// init the client
var elb = require('aws2js').load('elb', accessKeyId, secretAccessKey);
// call something of the ELB query API
elb.request('action', {foo: 'bar'}, function (error, response) {
if (error) {
console.error(error);
} else {
console.log(response);
}
});