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