-
Notifications
You must be signed in to change notification settings - Fork 32
STS Client
Ștefan Rusu edited this page Dec 10, 2013
·
3 revisions
aws.load('sts', [accessKeyId], [secretAccessKey])
sts.request(action, [query], callback)
The 'action' argument is the action required by the STS query API itself. The list of STS enabled services can be found here.
- 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.