Skip to content

CloudFormation Client

SaltwaterC edited this page Dec 8, 2011 · 1 revision

Client loader

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

Available low level method

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

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

Available helpers

Usage mode

// 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);
	}
});
Clone this wiki locally