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