/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.timestreamquery; import javax.annotation.Generated; import com.amazonaws.services.timestreamquery.model.*; /** * Interface for accessing Timestream Query asynchronously. Each asynchronous method will return a Java Future object * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.timestreamquery.AbstractAmazonTimestreamQueryAsync} instead. *
*
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Deletes a given scheduled query. This is an irreversible operation. *
* * @param deleteScheduledQueryRequest * @return A Java Future containing the result of the DeleteScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsync.DeleteScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future* Deletes a given scheduled query. This is an irreversible operation. *
* * @param deleteScheduledQueryRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.DeleteScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future* 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. *
* * @param describeEndpointsRequest * @return A Java Future containing the result of the DescribeEndpoints operation returned by the service. * @sample AmazonTimestreamQueryAsync.DescribeEndpoints * @see AWS API Documentation */ java.util.concurrent.Future* 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. *
* * @param describeEndpointsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DescribeEndpoints operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.DescribeEndpoints * @see AWS API Documentation */ java.util.concurrent.Future* Provides detailed information about a scheduled query. *
* * @param describeScheduledQueryRequest * @return A Java Future containing the result of the DescribeScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsync.DescribeScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future* Provides detailed information about a scheduled query. *
* * @param describeScheduledQueryRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DescribeScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.DescribeScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future* You can use this API to run a scheduled query manually. *
* * @param executeScheduledQueryRequest * @return A Java Future containing the result of the ExecuteScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsync.ExecuteScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future* You can use this API to run a scheduled query manually. *
* * @param executeScheduledQueryRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ExecuteScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.ExecuteScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future
* Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries
* is eventually consistent.
*
* Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries
* is eventually consistent.
*
* List all tags on a Timestream query resource. *
* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonTimestreamQueryAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* List all tags on a Timestream query resource. *
* * @param listTagsForResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future
* 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 the PrepareQueryRequest$ValidateOnly
set
* to true
.
*
* 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 the PrepareQueryRequest$ValidateOnly
set
* to true
.
*
* 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
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.
*
* 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. *
* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonTimestreamQueryAsync.TagResource * @see AWS * API Documentation */ java.util.concurrent.Future* 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. *
* * @param tagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.TagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Removes the association of tags from a Timestream query resource. *
* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonTimestreamQueryAsync.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Removes the association of tags from a Timestream query resource. *
* * @param untagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future* Update a scheduled query. *
* * @param updateScheduledQueryRequest * @return A Java Future containing the result of the UpdateScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsync.UpdateScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future* Update a scheduled query. *
* * @param updateScheduledQueryRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UpdateScheduledQuery operation returned by the service. * @sample AmazonTimestreamQueryAsyncHandler.UpdateScheduledQuery * @see AWS API Documentation */ java.util.concurrent.Future