@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.
|
CreateScheduledQueryResult |
createScheduledQuery(CreateScheduledQueryRequest request)
Create a scheduled query that will be run on your behalf at the configured schedule.
|
DeleteScheduledQueryResult |
deleteScheduledQuery(DeleteScheduledQueryRequest request)
Deletes a given scheduled query.
|
DescribeAccountSettingsResult |
describeAccountSettings(DescribeAccountSettingsRequest request)
Describes the settings for your account that include the query pricing model and the configured maximum TCUs the
service can use for your query workload.
|
DescribeEndpointsResult |
describeEndpoints(DescribeEndpointsRequest request)
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against.
|
DescribeScheduledQueryResult |
describeScheduledQuery(DescribeScheduledQueryRequest request)
Provides detailed information about a scheduled query.
|
ExecuteScheduledQueryResult |
executeScheduledQuery(ExecuteScheduledQueryRequest request)
You can use this API to run a scheduled query manually.
|
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.
|
ListScheduledQueriesResult |
listScheduledQueries(ListScheduledQueriesRequest request)
Gets a list of all scheduled queries in the caller's Amazon account and Region.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
List all tags on a Timestream query resource.
|
PrepareQueryResult |
prepareQuery(PrepareQueryRequest request)
A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later
running.
|
QueryResult |
query(QueryRequest request)
Query is a synchronous operation that enables you to run a query against your Amazon Timestream
data. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Associate a set of tags with a Timestream resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes the association of tags from a Timestream query resource.
|
UpdateAccountSettingsResult |
updateAccountSettings(UpdateAccountSettingsRequest request)
Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you've
configured.
|
UpdateScheduledQueryResult |
updateScheduledQuery(UpdateScheduledQueryRequest request)
Update a scheduled query.
|
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 provided only if the query has not completed running 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. See
code
sample for details.
cancelQuery in interface AmazonTimestreamQuerycancelQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service 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 not valid.public CreateScheduledQueryResult createScheduledQuery(CreateScheduledQueryRequest request)
Create a scheduled query that will be run on your behalf at the configured schedule. Timestream assumes the
execution role provided as part of the ScheduledQueryExecutionRoleArn parameter to run the query.
You can use the NotificationConfiguration parameter to configure notification for your scheduled
query operations.
createScheduledQuery in interface AmazonTimestreamQuerycreateScheduledQueryRequest - AccessDeniedException - You are not authorized to perform this action.ConflictException - Unable to poll results for a cancelled query.InternalServerException - The service was unable to fully process this request because of an internal server error.ServiceQuotaExceededException - You have exceeded the service quota.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.public DeleteScheduledQueryResult deleteScheduledQuery(DeleteScheduledQueryRequest request)
Deletes a given scheduled query. This is an irreversible operation.
deleteScheduledQuery in interface AmazonTimestreamQuerydeleteScheduledQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service was unable to fully process this request because of an internal server error.ResourceNotFoundException - The requested resource could not be found.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.public DescribeAccountSettingsResult describeAccountSettings(DescribeAccountSettingsRequest request)
Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.
You're charged only for the duration of compute units used for your workloads.
describeAccountSettings in interface AmazonTimestreamQuerydescribeAccountSettingsRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service was unable to fully process this request because of an internal server error.ThrottlingException - The request was denied due to request throttling.InvalidEndpointException - The requested endpoint was not valid.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 the Timestream 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:
You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream
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 and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern.
describeEndpoints in interface AmazonTimestreamQuerydescribeEndpointsRequest - InternalServerException - The service 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 DescribeScheduledQueryResult describeScheduledQuery(DescribeScheduledQueryRequest request)
Provides detailed information about a scheduled query.
describeScheduledQuery in interface AmazonTimestreamQuerydescribeScheduledQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service was unable to fully process this request because of an internal server error.ResourceNotFoundException - The requested resource could not be found.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.public ExecuteScheduledQueryResult executeScheduledQuery(ExecuteScheduledQueryRequest request)
You can use this API to run a scheduled query manually.
executeScheduledQuery in interface AmazonTimestreamQueryexecuteScheduledQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service was unable to fully process this request because of an internal server error.ResourceNotFoundException - The requested resource could not be found.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.public ListScheduledQueriesResult listScheduledQueries(ListScheduledQueriesRequest request)
Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries
is eventually consistent.
listScheduledQueries in interface AmazonTimestreamQuerylistScheduledQueriesRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service 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 not valid.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
List all tags on a Timestream query resource.
listTagsForResource in interface AmazonTimestreamQuerylistTagsForResourceRequest - ResourceNotFoundException - The requested resource could not be found.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.public PrepareQueryResult prepareQuery(PrepareQueryRequest request)
A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later
running. Timestream only supports using this operation with ValidateOnly set to true.
prepareQuery in interface AmazonTimestreamQueryprepareQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service 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 not valid.public QueryResult query(QueryRequest request)
Query is a synchronous operation that enables you to run a query against your Amazon Timestream
data. Query will time out after 60 seconds. You must update the default timeout in the SDK to
support a timeout of 60 seconds. See the code sample
for details.
Your query request will fail in the following cases:
If you submit a Query request with the same client token outside of the 5-minute idempotency window.
If you submit a Query request with the same client token, but change other parameters, within the
5-minute idempotency window.
If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message:
Query aborted as max page response size has been exceeded by the output result row
If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and
the result reader do not have the same query string in the query requests, the query will fail with an
Invalid pagination token error.
query in interface AmazonTimestreamQueryqueryRequest - AccessDeniedException - You are not authorized to perform this action.ConflictException - Unable to poll results for a cancelled query.InternalServerException - The service 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 not valid.public TagResourceResult tagResource(TagResourceRequest request)
Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.
tagResource in interface AmazonTimestreamQuerytagResourceRequest - ResourceNotFoundException - The requested resource could not be found.ServiceQuotaExceededException - You have exceeded the service quota.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the association of tags from a Timestream query resource.
untagResource in interface AmazonTimestreamQueryuntagResourceRequest - ValidationException - Invalid or malformed request.ThrottlingException - The request was denied due to request throttling.ResourceNotFoundException - The requested resource could not be found.InvalidEndpointException - The requested endpoint was not valid.public UpdateAccountSettingsResult updateAccountSettings(UpdateAccountSettingsRequest request)
Transitions your account to use TCUs for query pricing and modifies the maximum query compute units that you've
configured. If you reduce the value of MaxQueryTCU to a desired configuration, the new value can
take up to 24 hours to be effective.
After you've transitioned your account to use TCUs for query pricing, you can't transition to using bytes scanned for query pricing.
updateAccountSettings in interface AmazonTimestreamQueryupdateAccountSettingsRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service 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 not valid.public UpdateScheduledQueryResult updateScheduledQuery(UpdateScheduledQueryRequest request)
Update a scheduled query.
updateScheduledQuery in interface AmazonTimestreamQueryupdateScheduledQueryRequest - AccessDeniedException - You are not authorized to perform this action.InternalServerException - The service was unable to fully process this request because of an internal server error.ResourceNotFoundException - The requested resource could not be found.ThrottlingException - The request was denied due to request throttling.ValidationException - Invalid or malformed request.InvalidEndpointException - The requested endpoint was not valid.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