
software.amazon.awssdk.services.timestreamwrite.TimestreamWriteAsyncClient Maven / Gradle / Ivy
/*
* Copyright 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 software.amazon.awssdk.services.timestreamwrite;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.services.timestreamwrite.model.CreateBatchLoadTaskRequest;
import software.amazon.awssdk.services.timestreamwrite.model.CreateBatchLoadTaskResponse;
import software.amazon.awssdk.services.timestreamwrite.model.CreateDatabaseRequest;
import software.amazon.awssdk.services.timestreamwrite.model.CreateDatabaseResponse;
import software.amazon.awssdk.services.timestreamwrite.model.CreateTableRequest;
import software.amazon.awssdk.services.timestreamwrite.model.CreateTableResponse;
import software.amazon.awssdk.services.timestreamwrite.model.DeleteDatabaseRequest;
import software.amazon.awssdk.services.timestreamwrite.model.DeleteDatabaseResponse;
import software.amazon.awssdk.services.timestreamwrite.model.DeleteTableRequest;
import software.amazon.awssdk.services.timestreamwrite.model.DeleteTableResponse;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeBatchLoadTaskRequest;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeBatchLoadTaskResponse;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeDatabaseRequest;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeDatabaseResponse;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeEndpointsRequest;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeEndpointsResponse;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeTableRequest;
import software.amazon.awssdk.services.timestreamwrite.model.DescribeTableResponse;
import software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest;
import software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksResponse;
import software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest;
import software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesResponse;
import software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest;
import software.amazon.awssdk.services.timestreamwrite.model.ListTablesResponse;
import software.amazon.awssdk.services.timestreamwrite.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.timestreamwrite.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.timestreamwrite.model.ResumeBatchLoadTaskRequest;
import software.amazon.awssdk.services.timestreamwrite.model.ResumeBatchLoadTaskResponse;
import software.amazon.awssdk.services.timestreamwrite.model.TagResourceRequest;
import software.amazon.awssdk.services.timestreamwrite.model.TagResourceResponse;
import software.amazon.awssdk.services.timestreamwrite.model.UntagResourceRequest;
import software.amazon.awssdk.services.timestreamwrite.model.UntagResourceResponse;
import software.amazon.awssdk.services.timestreamwrite.model.UpdateDatabaseRequest;
import software.amazon.awssdk.services.timestreamwrite.model.UpdateDatabaseResponse;
import software.amazon.awssdk.services.timestreamwrite.model.UpdateTableRequest;
import software.amazon.awssdk.services.timestreamwrite.model.UpdateTableResponse;
import software.amazon.awssdk.services.timestreamwrite.model.WriteRecordsRequest;
import software.amazon.awssdk.services.timestreamwrite.model.WriteRecordsResponse;
import software.amazon.awssdk.services.timestreamwrite.paginators.ListBatchLoadTasksPublisher;
import software.amazon.awssdk.services.timestreamwrite.paginators.ListDatabasesPublisher;
import software.amazon.awssdk.services.timestreamwrite.paginators.ListTablesPublisher;
/**
* Service client for accessing Timestream Write asynchronously. This can be created using the static {@link #builder()}
* method.The asynchronous client performs non-blocking I/O when configured with any {@code SdkAsyncHttpClient}
* supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
* some cases such as credentials retrieval and endpoint discovery as part of the async API call.
*
* Amazon Timestream Write
*
* Amazon Timestream is a fast, scalable, fully managed time-series database service that makes it easy to store and
* analyze trillions of time-series data points per day. With Timestream, you can easily store and analyze IoT sensor
* data to derive insights from your IoT applications. You can analyze industrial telemetry to streamline equipment
* management and maintenance. You can also store and analyze log data and metrics to improve the performance and
* availability of your applications.
*
*
* Timestream is built from the ground up to effectively ingest, process, and store time-series data. It organizes data
* to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to
* ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s
* adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface TimestreamWriteAsyncClient extends AwsClient {
String SERVICE_NAME = "timestream";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "ingest.timestream";
/**
*
* Creates a new Timestream batch load task. A batch load task processes data from a CSV source in an S3 location
* and writes to a Timestream table. A mapping from source to target is defined in a batch load task. Errors and
* events are written to a report at an S3 location. For the report, if the KMS key is not specified, the report
* will be encrypted with an S3 managed key when SSE_S3
is the option. Otherwise an error is thrown.
* For more information, see Amazon Web Services
* managed keys. Service
* quotas apply. For details, see code
* sample.
*
*
* @param createBatchLoadTaskRequest
* @return A Java Future containing the result of the CreateBatchLoadTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - AccessDeniedException You are not authorized to perform this action.
* - ValidationException An invalid or malformed request.
* - ConflictException Timestream was unable to process this request because it contains resource that
* already exists.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.CreateBatchLoadTask
* @see AWS API Documentation
*/
default CompletableFuture createBatchLoadTask(
CreateBatchLoadTaskRequest createBatchLoadTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new Timestream batch load task. A batch load task processes data from a CSV source in an S3 location
* and writes to a Timestream table. A mapping from source to target is defined in a batch load task. Errors and
* events are written to a report at an S3 location. For the report, if the KMS key is not specified, the report
* will be encrypted with an S3 managed key when SSE_S3
is the option. Otherwise an error is thrown.
* For more information, see Amazon Web Services
* managed keys. Service
* quotas apply. For details, see code
* sample.
*
*
*
* This is a convenience which creates an instance of the {@link CreateBatchLoadTaskRequest.Builder} avoiding the
* need to create one manually via {@link CreateBatchLoadTaskRequest#builder()}
*
*
* @param createBatchLoadTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.CreateBatchLoadTaskRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the CreateBatchLoadTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - AccessDeniedException You are not authorized to perform this action.
* - ValidationException An invalid or malformed request.
* - ConflictException Timestream was unable to process this request because it contains resource that
* already exists.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.CreateBatchLoadTask
* @see AWS API Documentation
*/
default CompletableFuture createBatchLoadTask(
Consumer createBatchLoadTaskRequest) {
return createBatchLoadTask(CreateBatchLoadTaskRequest.builder().applyMutation(createBatchLoadTaskRequest).build());
}
/**
*
* Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a
* Timestream managed KMS key located in your account. For more information, see Amazon Web Services
* managed keys. Service
* quotas apply. For details, see code sample.
*
*
* @param createDatabaseRequest
* @return A Java Future containing the result of the CreateDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException Timestream was unable to process this request because it contains resource that
* already exists.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InvalidEndpointException The requested endpoint was not valid.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.CreateDatabase
* @see AWS API Documentation
*/
default CompletableFuture createDatabase(CreateDatabaseRequest createDatabaseRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a
* Timestream managed KMS key located in your account. For more information, see Amazon Web Services
* managed keys. Service
* quotas apply. For details, see code sample.
*
*
*
* This is a convenience which creates an instance of the {@link CreateDatabaseRequest.Builder} avoiding the need to
* create one manually via {@link CreateDatabaseRequest#builder()}
*
*
* @param createDatabaseRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.CreateDatabaseRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException Timestream was unable to process this request because it contains resource that
* already exists.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InvalidEndpointException The requested endpoint was not valid.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.CreateDatabase
* @see AWS API Documentation
*/
default CompletableFuture createDatabase(Consumer createDatabaseRequest) {
return createDatabase(CreateDatabaseRequest.builder().applyMutation(createDatabaseRequest).build());
}
/**
*
* Adds a new table to an existing database in your account. In an Amazon Web Services account, table names must be
* at least unique within each Region if they are in the same database. You might have identical table names in the
* same Region if the tables are in separate databases. While creating the table, you must specify the table name,
* database name, and the retention properties. Service quotas apply. See
* code
* sample for details.
*
*
* @param createTableRequest
* @return A Java Future containing the result of the CreateTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException Timestream was unable to process this request because it contains resource that
* already exists.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InvalidEndpointException The requested endpoint was not valid.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.CreateTable
* @see AWS
* API Documentation
*/
default CompletableFuture createTable(CreateTableRequest createTableRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Adds a new table to an existing database in your account. In an Amazon Web Services account, table names must be
* at least unique within each Region if they are in the same database. You might have identical table names in the
* same Region if the tables are in separate databases. While creating the table, you must specify the table name,
* database name, and the retention properties. Service quotas apply. See
* code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link CreateTableRequest.Builder} avoiding the need to
* create one manually via {@link CreateTableRequest#builder()}
*
*
* @param createTableRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.CreateTableRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the CreateTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ConflictException Timestream was unable to process this request because it contains resource that
* already exists.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InvalidEndpointException The requested endpoint was not valid.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.CreateTable
* @see AWS
* API Documentation
*/
default CompletableFuture createTable(Consumer createTableRequest) {
return createTable(CreateTableRequest.builder().applyMutation(createTableRequest).build());
}
/**
*
* Deletes a given Timestream database. This is an irreversible operation. After a database is deleted, the
* time-series data from its tables cannot be recovered.
*
*
*
* All tables in the database must be deleted first, or a ValidationException error will be thrown.
*
*
* Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException.
* Clients should consider them equivalent.
*
*
*
* See code
* sample for details.
*
*
* @param deleteDatabaseRequest
* @return A Java Future containing the result of the DeleteDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DeleteDatabase
* @see AWS API Documentation
*/
default CompletableFuture deleteDatabase(DeleteDatabaseRequest deleteDatabaseRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a given Timestream database. This is an irreversible operation. After a database is deleted, the
* time-series data from its tables cannot be recovered.
*
*
*
* All tables in the database must be deleted first, or a ValidationException error will be thrown.
*
*
* Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException.
* Clients should consider them equivalent.
*
*
*
* See code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteDatabaseRequest.Builder} avoiding the need to
* create one manually via {@link DeleteDatabaseRequest#builder()}
*
*
* @param deleteDatabaseRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.DeleteDatabaseRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DeleteDatabase
* @see AWS API Documentation
*/
default CompletableFuture deleteDatabase(Consumer deleteDatabaseRequest) {
return deleteDatabase(DeleteDatabaseRequest.builder().applyMutation(deleteDatabaseRequest).build());
}
/**
*
* Deletes a given Timestream table. This is an irreversible operation. After a Timestream database table is
* deleted, the time-series data stored in the table cannot be recovered.
*
*
*
* Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException.
* Clients should consider them equivalent.
*
*
*
* See code
* sample for details.
*
*
* @param deleteTableRequest
* @return A Java Future containing the result of the DeleteTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DeleteTable
* @see AWS
* API Documentation
*/
default CompletableFuture deleteTable(DeleteTableRequest deleteTableRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a given Timestream table. This is an irreversible operation. After a Timestream database table is
* deleted, the time-series data stored in the table cannot be recovered.
*
*
*
* Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException.
* Clients should consider them equivalent.
*
*
*
* See code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteTableRequest.Builder} avoiding the need to
* create one manually via {@link DeleteTableRequest#builder()}
*
*
* @param deleteTableRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.DeleteTableRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DeleteTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DeleteTable
* @see AWS
* API Documentation
*/
default CompletableFuture deleteTable(Consumer deleteTableRequest) {
return deleteTable(DeleteTableRequest.builder().applyMutation(deleteTableRequest).build());
}
/**
*
* Returns information about the batch load task, including configurations, mappings, progress, and other details.
* Service quotas apply.
* See code
* sample for details.
*
*
* @param describeBatchLoadTaskRequest
* @return A Java Future containing the result of the DescribeBatchLoadTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - AccessDeniedException You are not authorized to perform this action.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeBatchLoadTask
* @see AWS API Documentation
*/
default CompletableFuture describeBatchLoadTask(
DescribeBatchLoadTaskRequest describeBatchLoadTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns information about the batch load task, including configurations, mappings, progress, and other details.
* Service quotas apply.
* See code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeBatchLoadTaskRequest.Builder} avoiding the
* need to create one manually via {@link DescribeBatchLoadTaskRequest#builder()}
*
*
* @param describeBatchLoadTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.DescribeBatchLoadTaskRequest.Builder} to
* create a request.
* @return A Java Future containing the result of the DescribeBatchLoadTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - AccessDeniedException You are not authorized to perform this action.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeBatchLoadTask
* @see AWS API Documentation
*/
default CompletableFuture describeBatchLoadTask(
Consumer describeBatchLoadTaskRequest) {
return describeBatchLoadTask(DescribeBatchLoadTaskRequest.builder().applyMutation(describeBatchLoadTaskRequest).build());
}
/**
*
* Returns information about the database, including the database name, time that the database was created, and the
* total number of tables found within the database. Service quotas apply. See
* code
* sample for details.
*
*
* @param describeDatabaseRequest
* @return A Java Future containing the result of the DescribeDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeDatabase
* @see AWS API Documentation
*/
default CompletableFuture describeDatabase(DescribeDatabaseRequest describeDatabaseRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns information about the database, including the database name, time that the database was created, and the
* total number of tables found within the database. Service quotas apply. See
* code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeDatabaseRequest.Builder} avoiding the need
* to create one manually via {@link DescribeDatabaseRequest#builder()}
*
*
* @param describeDatabaseRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.DescribeDatabaseRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeDatabase
* @see AWS API Documentation
*/
default CompletableFuture describeDatabase(
Consumer describeDatabaseRequest) {
return describeDatabase(DescribeDatabaseRequest.builder().applyMutation(describeDatabaseRequest).build());
}
/**
*
* Returns a list of available endpoints to make Timestream API calls against. This API operation is available
* through both the Write and Query APIs.
*
*
* Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the
* management and mapping of the service endpoints, we don't recommend that you use this API operation
* 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.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ValidationException An invalid or malformed request.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeEndpoints
* @see AWS API Documentation
*/
default CompletableFuture describeEndpoints(DescribeEndpointsRequest describeEndpointsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of available endpoints to make Timestream API calls against. This API operation is available
* through both the Write and Query APIs.
*
*
* Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the
* management and mapping of the service endpoints, we don't recommend that you use this API operation
* 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.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeEndpointsRequest.Builder} avoiding the need
* to create one manually via {@link DescribeEndpointsRequest#builder()}
*
*
* @param describeEndpointsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.DescribeEndpointsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeEndpoints operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ValidationException An invalid or malformed request.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeEndpoints
* @see AWS API Documentation
*/
default CompletableFuture describeEndpoints(
Consumer describeEndpointsRequest) {
return describeEndpoints(DescribeEndpointsRequest.builder().applyMutation(describeEndpointsRequest).build());
}
/**
*
* Returns information about the table, including the table name, database name, retention duration of the memory
* store and the magnetic store. Service quotas apply. See
* code
* sample for details.
*
*
* @param describeTableRequest
* @return A Java Future containing the result of the DescribeTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeTable
* @see AWS API Documentation
*/
default CompletableFuture describeTable(DescribeTableRequest describeTableRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns information about the table, including the table name, database name, retention duration of the memory
* store and the magnetic store. Service quotas apply. See
* code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeTableRequest.Builder} avoiding the need to
* create one manually via {@link DescribeTableRequest#builder()}
*
*
* @param describeTableRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.DescribeTableRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the DescribeTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.DescribeTable
* @see AWS API Documentation
*/
default CompletableFuture describeTable(Consumer describeTableRequest) {
return describeTable(DescribeTableRequest.builder().applyMutation(describeTableRequest).build());
}
/**
*
* Provides a list of batch load tasks, along with the name, status, when the task is resumable until, and other
* details. See code
* sample for details.
*
*
* @param listBatchLoadTasksRequest
* @return A Java Future containing the result of the ListBatchLoadTasks operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListBatchLoadTasks
* @see AWS API Documentation
*/
default CompletableFuture listBatchLoadTasks(ListBatchLoadTasksRequest listBatchLoadTasksRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Provides a list of batch load tasks, along with the name, status, when the task is resumable until, and other
* details. See code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link ListBatchLoadTasksRequest.Builder} avoiding the
* need to create one manually via {@link ListBatchLoadTasksRequest#builder()}
*
*
* @param listBatchLoadTasksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the ListBatchLoadTasks operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListBatchLoadTasks
* @see AWS API Documentation
*/
default CompletableFuture listBatchLoadTasks(
Consumer listBatchLoadTasksRequest) {
return listBatchLoadTasks(ListBatchLoadTasksRequest.builder().applyMutation(listBatchLoadTasksRequest).build());
}
/**
*
* This is a variant of
* {@link #listBatchLoadTasks(software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListBatchLoadTasksPublisher publisher = client.listBatchLoadTasksPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListBatchLoadTasksPublisher publisher = client.listBatchLoadTasksPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listBatchLoadTasks(software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest)}
* operation.
*
*
* @param listBatchLoadTasksRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListBatchLoadTasks
* @see AWS API Documentation
*/
default ListBatchLoadTasksPublisher listBatchLoadTasksPaginator(ListBatchLoadTasksRequest listBatchLoadTasksRequest) {
return new ListBatchLoadTasksPublisher(this, listBatchLoadTasksRequest);
}
/**
*
* This is a variant of
* {@link #listBatchLoadTasks(software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListBatchLoadTasksPublisher publisher = client.listBatchLoadTasksPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListBatchLoadTasksPublisher publisher = client.listBatchLoadTasksPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listBatchLoadTasks(software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListBatchLoadTasksRequest.Builder} avoiding the
* need to create one manually via {@link ListBatchLoadTasksRequest#builder()}
*
*
* @param listBatchLoadTasksRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListBatchLoadTasksRequest.Builder} to create
* a request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - AccessDeniedException You are not authorized to perform this action.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListBatchLoadTasks
* @see AWS API Documentation
*/
default ListBatchLoadTasksPublisher listBatchLoadTasksPaginator(
Consumer listBatchLoadTasksRequest) {
return listBatchLoadTasksPaginator(ListBatchLoadTasksRequest.builder().applyMutation(listBatchLoadTasksRequest).build());
}
/**
*
* Returns a list of your Timestream databases. Service quotas apply. See
* code sample
* for details.
*
*
* @param listDatabasesRequest
* @return A Java Future containing the result of the ListDatabases operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListDatabases
* @see AWS API Documentation
*/
default CompletableFuture listDatabases(ListDatabasesRequest listDatabasesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of your Timestream databases. Service quotas apply. See
* code sample
* for details.
*
*
*
* This is a convenience which creates an instance of the {@link ListDatabasesRequest.Builder} avoiding the need to
* create one manually via {@link ListDatabasesRequest#builder()}
*
*
* @param listDatabasesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListDatabases operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListDatabases
* @see AWS API Documentation
*/
default CompletableFuture listDatabases(Consumer listDatabasesRequest) {
return listDatabases(ListDatabasesRequest.builder().applyMutation(listDatabasesRequest).build());
}
/**
*
* This is a variant of
* {@link #listDatabases(software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest)} operation. The
* return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
* internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListDatabasesPublisher publisher = client.listDatabasesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListDatabasesPublisher publisher = client.listDatabasesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listDatabases(software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest)} operation.
*
*
* @param listDatabasesRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListDatabases
* @see AWS API Documentation
*/
default ListDatabasesPublisher listDatabasesPaginator(ListDatabasesRequest listDatabasesRequest) {
return new ListDatabasesPublisher(this, listDatabasesRequest);
}
/**
*
* This is a variant of
* {@link #listDatabases(software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest)} operation. The
* return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
* internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListDatabasesPublisher publisher = client.listDatabasesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListDatabasesPublisher publisher = client.listDatabasesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listDatabases(software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListDatabasesRequest.Builder} avoiding the need to
* create one manually via {@link ListDatabasesRequest#builder()}
*
*
* @param listDatabasesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListDatabasesRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListDatabases
* @see AWS API Documentation
*/
default ListDatabasesPublisher listDatabasesPaginator(Consumer listDatabasesRequest) {
return listDatabasesPaginator(ListDatabasesRequest.builder().applyMutation(listDatabasesRequest).build());
}
/**
*
* Provides a list of tables, along with the name, status, and retention properties of each table. See code sample
* for details.
*
*
* @param listTablesRequest
* @return A Java Future containing the result of the ListTables operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListTables
* @see AWS
* API Documentation
*/
default CompletableFuture listTables(ListTablesRequest listTablesRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Provides a list of tables, along with the name, status, and retention properties of each table. See code sample
* for details.
*
*
*
* This is a convenience which creates an instance of the {@link ListTablesRequest.Builder} avoiding the need to
* create one manually via {@link ListTablesRequest#builder()}
*
*
* @param listTablesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the ListTables operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListTables
* @see AWS
* API Documentation
*/
default CompletableFuture listTables(Consumer listTablesRequest) {
return listTables(ListTablesRequest.builder().applyMutation(listTablesRequest).build());
}
/**
*
* This is a variant of {@link #listTables(software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListTablesPublisher publisher = client.listTablesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListTablesPublisher publisher = client.listTablesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.timestreamwrite.model.ListTablesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listTables(software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest)} operation.
*
*
* @param listTablesRequest
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListTables
* @see AWS
* API Documentation
*/
default ListTablesPublisher listTablesPaginator(ListTablesRequest listTablesRequest) {
return new ListTablesPublisher(this, listTablesRequest);
}
/**
*
* This is a variant of {@link #listTables(software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest)}
* operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
* SDK will internally handle making service calls for you.
*
*
* When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
* and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
* failures only after you start streaming the data. The subscribe method should be called as a request to start
* streaming data. For more info, see
* {@link org.reactivestreams.Publisher#subscribe(org.reactivestreams.Subscriber)}. Each call to the subscribe
* method will result in a new {@link org.reactivestreams.Subscription} i.e., a new contract to stream data from the
* starting request.
*
*
*
* The following are few ways to use the response class:
*
* 1) Using the subscribe helper method
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListTablesPublisher publisher = client.listTablesPaginator(request);
* CompletableFuture future = publisher.subscribe(res -> { // Do something with the response });
* future.get();
* }
*
*
* 2) Using a custom subscriber
*
*
* {@code
* software.amazon.awssdk.services.timestreamwrite.paginators.ListTablesPublisher publisher = client.listTablesPaginator(request);
* publisher.subscribe(new Subscriber() {
*
* public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
*
*
* public void onNext(software.amazon.awssdk.services.timestreamwrite.model.ListTablesResponse response) { //... };
* });}
*
*
* As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
*
* Please notice that the configuration of MaxResults won't limit the number of results you get with the
* paginator. It only limits the number of results in each page.
*
*
* Note: If you prefer to have control on service calls, use the
* {@link #listTables(software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListTablesRequest.Builder} avoiding the need to
* create one manually via {@link ListTablesRequest#builder()}
*
*
* @param listTablesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListTablesRequest.Builder} to create a
* request.
* @return A custom publisher that can be subscribed to request a stream of response pages.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListTables
* @see AWS
* API Documentation
*/
default ListTablesPublisher listTablesPaginator(Consumer listTablesRequest) {
return listTablesPaginator(ListTablesRequest.builder().applyMutation(listTablesRequest).build());
}
/**
*
* Lists all tags on a Timestream resource.
*
*
* @param listTagsForResourceRequest
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
ListTagsForResourceRequest listTagsForResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Lists all tags on a Timestream resource.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ListTagsForResourceRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ListTagsForResource
* @see AWS API Documentation
*/
default CompletableFuture listTagsForResource(
Consumer listTagsForResourceRequest) {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
*
*
* @param resumeBatchLoadTaskRequest
* @return A Java Future containing the result of the ResumeBatchLoadTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - AccessDeniedException You are not authorized to perform this action.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ResumeBatchLoadTask
* @see AWS API Documentation
*/
default CompletableFuture resumeBatchLoadTask(
ResumeBatchLoadTaskRequest resumeBatchLoadTaskRequest) {
throw new UnsupportedOperationException();
}
/**
*
*
*
*
* This is a convenience which creates an instance of the {@link ResumeBatchLoadTaskRequest.Builder} avoiding the
* need to create one manually via {@link ResumeBatchLoadTaskRequest#builder()}
*
*
* @param resumeBatchLoadTaskRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.ResumeBatchLoadTaskRequest.Builder} to create
* a request.
* @return A Java Future containing the result of the ResumeBatchLoadTask operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - AccessDeniedException You are not authorized to perform this action.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.ResumeBatchLoadTask
* @see AWS API Documentation
*/
default CompletableFuture resumeBatchLoadTask(
Consumer resumeBatchLoadTaskRequest) {
return resumeBatchLoadTask(ResumeBatchLoadTaskRequest.builder().applyMutation(resumeBatchLoadTaskRequest).build());
}
/**
*
* Associates 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.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.TagResource
* @see AWS
* API Documentation
*/
default CompletableFuture tagResource(TagResourceRequest tagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Associates 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.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.TagResourceRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the TagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.TagResource
* @see AWS
* API Documentation
*/
default CompletableFuture tagResource(Consumer tagResourceRequest) {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Removes the association of tags from a Timestream resource.
*
*
* @param untagResourceRequest
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException An invalid or malformed request.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.UntagResource
* @see AWS API Documentation
*/
default CompletableFuture untagResource(UntagResourceRequest untagResourceRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Removes the association of tags from a Timestream resource.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.UntagResourceRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the UntagResource operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException An invalid or malformed request.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.UntagResource
* @see AWS API Documentation
*/
default CompletableFuture untagResource(Consumer untagResourceRequest) {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Modifies the KMS key for an existing database. While updating the database, you must specify the database name
* and the identifier of the new KMS key to be used (KmsKeyId
). If there are any concurrent
* UpdateDatabase
requests, first writer wins.
*
*
* See code
* sample for details.
*
*
* @param updateDatabaseRequest
* @return A Java Future containing the result of the UpdateDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.UpdateDatabase
* @see AWS API Documentation
*/
default CompletableFuture updateDatabase(UpdateDatabaseRequest updateDatabaseRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Modifies the KMS key for an existing database. While updating the database, you must specify the database name
* and the identifier of the new KMS key to be used (KmsKeyId
). If there are any concurrent
* UpdateDatabase
requests, first writer wins.
*
*
* See code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateDatabaseRequest.Builder} avoiding the need to
* create one manually via {@link UpdateDatabaseRequest#builder()}
*
*
* @param updateDatabaseRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.UpdateDatabaseRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the UpdateDatabase operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - ValidationException An invalid or malformed request.
* - AccessDeniedException You are not authorized to perform this action.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - ServiceQuotaExceededException The instance quota of resource exceeded for this account.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.UpdateDatabase
* @see AWS API Documentation
*/
default CompletableFuture updateDatabase(Consumer updateDatabaseRequest) {
return updateDatabase(UpdateDatabaseRequest.builder().applyMutation(updateDatabaseRequest).build());
}
/**
*
* Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the
* change in retention duration takes effect immediately. For example, if the retention period of the memory store
* was initially set to 2 hours and then changed to 24 hours, the memory store will be capable of holding 24 hours
* of data, but will be populated with 24 hours of data 22 hours after this change was made. Timestream does not
* retrieve data from the magnetic store to populate the memory store.
*
*
* See code
* sample for details.
*
*
* @param updateTableRequest
* @return A Java Future containing the result of the UpdateTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.UpdateTable
* @see AWS
* API Documentation
*/
default CompletableFuture updateTable(UpdateTableRequest updateTableRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the
* change in retention duration takes effect immediately. For example, if the retention period of the memory store
* was initially set to 2 hours and then changed to 24 hours, the memory store will be capable of holding 24 hours
* of data, but will be populated with 24 hours of data 22 hours after this change was made. Timestream does not
* retrieve data from the magnetic store to populate the memory store.
*
*
* See code
* sample for details.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateTableRequest.Builder} avoiding the need to
* create one manually via {@link UpdateTableRequest#builder()}
*
*
* @param updateTableRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.UpdateTableRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the UpdateTable operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.UpdateTable
* @see AWS
* API Documentation
*/
default CompletableFuture updateTable(Consumer updateTableRequest) {
return updateTable(UpdateTableRequest.builder().applyMutation(updateTableRequest).build());
}
/**
*
* Enables you to write your time-series data into Timestream. You can specify a single data point or a batch of
* data points to be inserted into the system. Timestream offers you a flexible schema that auto detects the column
* names and data types for your Timestream tables based on the dimension names and data types of the data points
* you specify when invoking writes into the database.
*
*
* Timestream supports eventual consistency read semantics. This means that when you query data immediately after
* writing a batch of data into Timestream, the query results might not reflect the results of a recently completed
* write operation. The results may also include some stale data. If you repeat the query request after a short
* time, the results should return the latest data. Service quotas apply.
*
*
* See code
* sample for details.
*
*
* Upserts
*
*
* You can use the Version
parameter in a WriteRecords
request to update data points.
* Timestream tracks a version number with each record. Version
defaults to 1
when it's
* not specified for the record in the request. Timestream updates an existing record’s measure value along with its
* Version
when it receives a write request with a higher Version
number for that record.
* When it receives an update request where the measure value is the same as that of the existing record, Timestream
* still updates Version
, if it is greater than the existing value of Version
. You can
* update a data point as many times as desired, as long as the value of Version
continuously
* increases.
*
*
* For example, suppose you write a new record without indicating Version
in the request. Timestream
* stores this record, and set Version
to 1
. Now, suppose you try to update this record
* with a WriteRecords
request of the same record with a different measure value but, like before, do
* not provide Version
. In this case, Timestream will reject this update with a
* RejectedRecordsException
since the updated record’s version is not greater than the existing value
* of Version.
*
*
* However, if you were to resend the update request with Version
set to 2
, Timestream
* would then succeed in updating the record’s value, and the Version
would be set to 2
.
* Next, suppose you sent a WriteRecords
request with this same record and an identical measure value,
* but with Version
set to 3
. In this case, Timestream would only update
* Version
to 3
. Any further updates would need to send a version number greater than
* 3
, or the update requests would receive a RejectedRecordsException
.
*
*
* @param writeRecordsRequest
* @return A Java Future containing the result of the WriteRecords operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - RejectedRecordsException WriteRecords would throw this exception in the following cases:
*
* -
*
* Records with duplicate data where there are multiple records with the same dimensions, timestamps, and
* measure names but:
*
*
* -
*
* Measure values are different
*
*
* -
*
* Version is not present in the request or the value of version in the new record is equal to or
* lower than the existing value
*
*
*
*
* In this case, if Timestream rejects data, the ExistingVersion
field in the
* RejectedRecords
response will indicate the current record’s version. To force an update, you
* can resend the request with a version for the record set to a value greater than the
* ExistingVersion
.
*
*
* -
*
* Records with timestamps that lie outside the retention duration of the memory store.
*
*
* -
*
* Records with dimensions or measures that exceed the Timestream defined limits.
*
*
*
*
* For more information, see Quotas in the
* Amazon Timestream Developer Guide.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.WriteRecords
* @see AWS
* API Documentation
*/
default CompletableFuture writeRecords(WriteRecordsRequest writeRecordsRequest) {
throw new UnsupportedOperationException();
}
/**
*
* Enables you to write your time-series data into Timestream. You can specify a single data point or a batch of
* data points to be inserted into the system. Timestream offers you a flexible schema that auto detects the column
* names and data types for your Timestream tables based on the dimension names and data types of the data points
* you specify when invoking writes into the database.
*
*
* Timestream supports eventual consistency read semantics. This means that when you query data immediately after
* writing a batch of data into Timestream, the query results might not reflect the results of a recently completed
* write operation. The results may also include some stale data. If you repeat the query request after a short
* time, the results should return the latest data. Service quotas apply.
*
*
* See code
* sample for details.
*
*
* Upserts
*
*
* You can use the Version
parameter in a WriteRecords
request to update data points.
* Timestream tracks a version number with each record. Version
defaults to 1
when it's
* not specified for the record in the request. Timestream updates an existing record’s measure value along with its
* Version
when it receives a write request with a higher Version
number for that record.
* When it receives an update request where the measure value is the same as that of the existing record, Timestream
* still updates Version
, if it is greater than the existing value of Version
. You can
* update a data point as many times as desired, as long as the value of Version
continuously
* increases.
*
*
* For example, suppose you write a new record without indicating Version
in the request. Timestream
* stores this record, and set Version
to 1
. Now, suppose you try to update this record
* with a WriteRecords
request of the same record with a different measure value but, like before, do
* not provide Version
. In this case, Timestream will reject this update with a
* RejectedRecordsException
since the updated record’s version is not greater than the existing value
* of Version.
*
*
* However, if you were to resend the update request with Version
set to 2
, Timestream
* would then succeed in updating the record’s value, and the Version
would be set to 2
.
* Next, suppose you sent a WriteRecords
request with this same record and an identical measure value,
* but with Version
set to 3
. In this case, Timestream would only update
* Version
to 3
. Any further updates would need to send a version number greater than
* 3
, or the update requests would receive a RejectedRecordsException
.
*
*
*
* This is a convenience which creates an instance of the {@link WriteRecordsRequest.Builder} avoiding the need to
* create one manually via {@link WriteRecordsRequest#builder()}
*
*
* @param writeRecordsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.timestreamwrite.model.WriteRecordsRequest.Builder} to create a
* request.
* @return A Java Future containing the result of the WriteRecords operation returned by the service.
* The CompletableFuture returned by this method can be completed exceptionally with the following
* exceptions. The exception returned is wrapped with CompletionException, so you need to invoke
* {@link Throwable#getCause} to retrieve the underlying exception.
*
* - InternalServerException Timestream was unable to fully process this request because of an internal
* server error.
* - ThrottlingException Too many requests were made by a user and they exceeded the service quotas. The
* request was throttled.
* - ValidationException An invalid or malformed request.
* - ResourceNotFoundException The operation tried to access a nonexistent resource. The resource might
* not be specified correctly, or its status might not be ACTIVE.
* - AccessDeniedException You are not authorized to perform this action.
* - RejectedRecordsException WriteRecords would throw this exception in the following cases:
*
* -
*
* Records with duplicate data where there are multiple records with the same dimensions, timestamps, and
* measure names but:
*
*
* -
*
* Measure values are different
*
*
* -
*
* Version is not present in the request or the value of version in the new record is equal to or
* lower than the existing value
*
*
*
*
* In this case, if Timestream rejects data, the ExistingVersion
field in the
* RejectedRecords
response will indicate the current record’s version. To force an update, you
* can resend the request with a version for the record set to a value greater than the
* ExistingVersion
.
*
*
* -
*
* Records with timestamps that lie outside the retention duration of the memory store.
*
*
* -
*
* Records with dimensions or measures that exceed the Timestream defined limits.
*
*
*
*
* For more information, see Quotas in the
* Amazon Timestream Developer Guide.
* - InvalidEndpointException The requested endpoint was not valid.
* - SdkException Base class for all exceptions that can be thrown by the SDK (both service and client).
* Can be used for catch all scenarios.
* - SdkClientException If any client side error occurs such as an IO related failure, failure to get
* credentials, etc.
* - TimestreamWriteException Base class for all service exceptions. Unknown exceptions will be thrown as
* an instance of this type.
*
* @sample TimestreamWriteAsyncClient.WriteRecords
* @see AWS
* API Documentation
*/
default CompletableFuture writeRecords(Consumer writeRecordsRequest) {
return writeRecords(WriteRecordsRequest.builder().applyMutation(writeRecordsRequest).build());
}
@Override
default TimestreamWriteServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
/**
* Create a {@link TimestreamWriteAsyncClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static TimestreamWriteAsyncClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link TimestreamWriteAsyncClient}.
*/
static TimestreamWriteAsyncClientBuilder builder() {
return new DefaultTimestreamWriteAsyncClientBuilder();
}
}