Class: AWS.TimestreamQuery
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.TimestreamQuery
- Identifier:
- timestreamquery
- API Version:
- 2018-11-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Sending a Request Using TimestreamQuery
var timestreamquery = new AWS.TimestreamQuery();
timestreamquery.cancelQuery(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 TimestreamQuery object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var timestreamquery = new AWS.TimestreamQuery({apiVersion: '2018-11-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the timestreamquery service identifier:
AWS.config.apiVersions = {
timestreamquery: '2018-11-01',
// other service API versions
};
var timestreamquery = new AWS.TimestreamQuery();
Constructor Summary collapse
-
new AWS.TimestreamQuery(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
cancelQuery(params = {}, callback) ⇒ AWS.Request
Cancels a query that has been issued.
-
describeEndpoints(params = {}, callback) ⇒ AWS.Request
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
-
query(params = {}, callback) ⇒ AWS.Request
Query is a synchronous operation that enables you to execute a query.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.TimestreamQuery(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
cancelQuery(params = {}, callback) ⇒ AWS.Request
Cancels a query that has been issued. Cancellation is guaranteed only if the query has not completed execution before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage
, indicating that the query has already been canceled.
describeEndpoints(params = {}, callback) ⇒ AWS.Request
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because Timestream’s SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
-
Your application uses a programming language that does not yet have SDK support
-
You require better control over the client-side implementation
For detailed information on how to use DescribeEndpoints, see The Endpoint Discovery Pattern and REST APIs.
query(params = {}, callback) ⇒ AWS.Request
Query is a synchronous operation that enables you to execute a query. Query will timeout after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. The result set will be truncated to 1MB. Service quotas apply. For more information, see Quotas in the Timestream Developer Guide.