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