@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonTimestreamQueryClient extends AmazonWebServiceClient implements AmazonTimestreamQuery
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonTimestreamQueryClientBuilder |
builder() |
CancelQueryResult |
cancelQuery(CancelQueryRequest request)
Cancels a query that has been issued.
|
DescribeEndpointsResult |
describeEndpoints(DescribeEndpointsRequest request)
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
QueryResult |
query(QueryRequest request)
Query is a synchronous operation that enables you to execute a query.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AmazonTimestreamQueryClientBuilder builder()
public CancelQueryResult cancelQuery(CancelQueryRequest 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.
cancelQuery in interface AmazonTimestreamQuerycancelQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - Timestream was unable to fully process this request because of an internal server error.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was invalid.public DescribeEndpointsResult describeEndpoints(DescribeEndpointsRequest 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.
describeEndpoints in interface AmazonTimestreamQuerydescribeEndpointsRequest - InternalServerException - Timestream was unable to fully process this request because of an internal server error.ValidationException - Invalid or malformed request.ThrottlingException - The request was denied due to request throttling.public QueryResult query(QueryRequest 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.
query in interface AmazonTimestreamQueryqueryRequest - AccessDeniedException - You are not authorized to perform this action.ConflictException - Unable to poll results for a cancelled query.InternalServerException - Timestream was unable to fully process this request because of an internal server error.QueryExecutionException - Timestream was unable to run the query successfully.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was invalid.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonTimestreamQueryrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AmazonTimestreamQueryshutdown in class AmazonWebServiceClient