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