Skip to content

CloudWatch Client

SaltwaterC edited this page Nov 15, 2011 · 1 revision

Client loader

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

Available low level method

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

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

Available helpers

Usage mode

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

// call something of the CloudWatch query API
cloudwatch.request('action', {foo: 'bar'}, function (error, response) {
	if (error) {
		console.error(error);
	} else {
		console.log(response);
	}
});
Clone this wiki locally