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