Class: AWS.RDSDataService
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.RDSDataService
- Identifier:
- rdsdataservice
- API Version:
- 2018-08-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS RDS DataService provides Http Endpoint to query RDS databases.
Sending a Request Using RDSDataService
var rdsdataservice = new AWS.RDSDataService();
rdsdataservice.executeSql(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the RDSDataService object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var rdsdataservice = new AWS.RDSDataService({apiVersion: '2018-08-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the rdsdataservice service identifier:
AWS.config.apiVersions = {
rdsdataservice: '2018-08-01',
// other service API versions
};
var rdsdataservice = new AWS.RDSDataService();
Constructor Summary
-
new AWS.RDSDataService(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
executeSql(params = {}, callback) ⇒ AWS.Request
Executes any SQL statement on the target database synchronously.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService