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