Interface TimestreamInfluxDbClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface TimestreamInfluxDbClient extends AwsClient
Service client for accessing Timestream InfluxDB. This can be created using the staticbuilder()method.Amazon Timestream for InfluxDB is a managed time-series database engine that makes it easy for application developers and DevOps teams to run InfluxDB databases on AWS for near real-time time-series applications using open-source APIs. With Amazon Timestream for InfluxDB, it is easy to set up, operate, and scale time-series workloads that can answer queries with single-digit millisecond query response time.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createDbInstance
default CreateDbInstanceResponse createDbInstance(CreateDbInstanceRequest createDbInstanceRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Creates a new Timestream for InfluxDB DB instance.
- Parameters:
createDbInstanceRequest-- Returns:
- Result of the CreateDbInstance operation returned by the service.
- Throws:
ServiceQuotaExceededException- The request exceeds the service quota.ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createDbInstance
default CreateDbInstanceResponse createDbInstance(Consumer<CreateDbInstanceRequest.Builder> createDbInstanceRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Creates a new Timestream for InfluxDB DB instance.
This is a convenience which creates an instance of the
CreateDbInstanceRequest.Builderavoiding the need to create one manually viaCreateDbInstanceRequest.builder()- Parameters:
createDbInstanceRequest- AConsumerthat will call methods onCreateDbInstanceRequest.Builderto create a request.- Returns:
- Result of the CreateDbInstance operation returned by the service.
- Throws:
ServiceQuotaExceededException- The request exceeds the service quota.ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createDbParameterGroup
default CreateDbParameterGroupResponse createDbParameterGroup(CreateDbParameterGroupRequest createDbParameterGroupRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Creates a new Timestream for InfluxDB DB parameter group to associate with DB instances.
- Parameters:
createDbParameterGroupRequest-- Returns:
- Result of the CreateDbParameterGroup operation returned by the service.
- Throws:
ServiceQuotaExceededException- The request exceeds the service quota.ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createDbParameterGroup
default CreateDbParameterGroupResponse createDbParameterGroup(Consumer<CreateDbParameterGroupRequest.Builder> createDbParameterGroupRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Creates a new Timestream for InfluxDB DB parameter group to associate with DB instances.
This is a convenience which creates an instance of the
CreateDbParameterGroupRequest.Builderavoiding the need to create one manually viaCreateDbParameterGroupRequest.builder()- Parameters:
createDbParameterGroupRequest- AConsumerthat will call methods onCreateDbParameterGroupRequest.Builderto create a request.- Returns:
- Result of the CreateDbParameterGroup operation returned by the service.
- Throws:
ServiceQuotaExceededException- The request exceeds the service quota.ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDbInstance
default DeleteDbInstanceResponse deleteDbInstance(DeleteDbInstanceRequest deleteDbInstanceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Deletes a Timestream for InfluxDB DB instance.
- Parameters:
deleteDbInstanceRequest-- Returns:
- Result of the DeleteDbInstance operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDbInstance
default DeleteDbInstanceResponse deleteDbInstance(Consumer<DeleteDbInstanceRequest.Builder> deleteDbInstanceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Deletes a Timestream for InfluxDB DB instance.
This is a convenience which creates an instance of the
DeleteDbInstanceRequest.Builderavoiding the need to create one manually viaDeleteDbInstanceRequest.builder()- Parameters:
deleteDbInstanceRequest- AConsumerthat will call methods onDeleteDbInstanceRequest.Builderto create a request.- Returns:
- Result of the DeleteDbInstance operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDbInstance
default GetDbInstanceResponse getDbInstance(GetDbInstanceRequest getDbInstanceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a Timestream for InfluxDB DB instance.
- Parameters:
getDbInstanceRequest-- Returns:
- Result of the GetDbInstance operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDbInstance
default GetDbInstanceResponse getDbInstance(Consumer<GetDbInstanceRequest.Builder> getDbInstanceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a Timestream for InfluxDB DB instance.
This is a convenience which creates an instance of the
GetDbInstanceRequest.Builderavoiding the need to create one manually viaGetDbInstanceRequest.builder()- Parameters:
getDbInstanceRequest- AConsumerthat will call methods onGetDbInstanceRequest.Builderto create a request.- Returns:
- Result of the GetDbInstance operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDbParameterGroup
default GetDbParameterGroupResponse getDbParameterGroup(GetDbParameterGroupRequest getDbParameterGroupRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a Timestream for InfluxDB DB parameter group.
- Parameters:
getDbParameterGroupRequest-- Returns:
- Result of the GetDbParameterGroup operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDbParameterGroup
default GetDbParameterGroupResponse getDbParameterGroup(Consumer<GetDbParameterGroupRequest.Builder> getDbParameterGroupRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a Timestream for InfluxDB DB parameter group.
This is a convenience which creates an instance of the
GetDbParameterGroupRequest.Builderavoiding the need to create one manually viaGetDbParameterGroupRequest.builder()- Parameters:
getDbParameterGroupRequest- AConsumerthat will call methods onGetDbParameterGroupRequest.Builderto create a request.- Returns:
- Result of the GetDbParameterGroup operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbInstances
default ListDbInstancesResponse listDbInstances(ListDbInstancesRequest listDbInstancesRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a list of Timestream for InfluxDB DB instances.
- Parameters:
listDbInstancesRequest-- Returns:
- Result of the ListDbInstances operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbInstances
default ListDbInstancesResponse listDbInstances(Consumer<ListDbInstancesRequest.Builder> listDbInstancesRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a list of Timestream for InfluxDB DB instances.
This is a convenience which creates an instance of the
ListDbInstancesRequest.Builderavoiding the need to create one manually viaListDbInstancesRequest.builder()- Parameters:
listDbInstancesRequest- AConsumerthat will call methods onListDbInstancesRequest.Builderto create a request.- Returns:
- Result of the ListDbInstances operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbInstancesPaginator
default ListDbInstancesIterable listDbInstancesPaginator(ListDbInstancesRequest listDbInstancesRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
This is a variant of
listDbInstances(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbInstancesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbInstancesIterable responses = client.listDbInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbInstancesIterable responses = client .listDbInstancesPaginator(request); for (software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbInstancesIterable responses = client.listDbInstancesPaginator(request); responses.iterator().forEachRemaining(....);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
listDbInstances(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbInstancesRequest)operation.- Parameters:
listDbInstancesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbInstancesPaginator
default ListDbInstancesIterable listDbInstancesPaginator(Consumer<ListDbInstancesRequest.Builder> listDbInstancesRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
This is a variant of
listDbInstances(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbInstancesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbInstancesIterable responses = client.listDbInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbInstancesIterable responses = client .listDbInstancesPaginator(request); for (software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbInstancesIterable responses = client.listDbInstancesPaginator(request); responses.iterator().forEachRemaining(....);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
listDbInstances(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbInstancesRequest)operation.
This is a convenience which creates an instance of the
ListDbInstancesRequest.Builderavoiding the need to create one manually viaListDbInstancesRequest.builder()- Parameters:
listDbInstancesRequest- AConsumerthat will call methods onListDbInstancesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbParameterGroups
default ListDbParameterGroupsResponse listDbParameterGroups(ListDbParameterGroupsRequest listDbParameterGroupsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a list of Timestream for InfluxDB DB parameter groups.
- Parameters:
listDbParameterGroupsRequest-- Returns:
- Result of the ListDbParameterGroups operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbParameterGroups
default ListDbParameterGroupsResponse listDbParameterGroups(Consumer<ListDbParameterGroupsRequest.Builder> listDbParameterGroupsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Returns a list of Timestream for InfluxDB DB parameter groups.
This is a convenience which creates an instance of the
ListDbParameterGroupsRequest.Builderavoiding the need to create one manually viaListDbParameterGroupsRequest.builder()- Parameters:
listDbParameterGroupsRequest- AConsumerthat will call methods onListDbParameterGroupsRequest.Builderto create a request.- Returns:
- Result of the ListDbParameterGroups operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbParameterGroupsPaginator
default ListDbParameterGroupsIterable listDbParameterGroupsPaginator(ListDbParameterGroupsRequest listDbParameterGroupsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
This is a variant of
listDbParameterGroups(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbParameterGroupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbParameterGroupsIterable responses = client.listDbParameterGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbParameterGroupsIterable responses = client .listDbParameterGroupsPaginator(request); for (software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbParameterGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbParameterGroupsIterable responses = client.listDbParameterGroupsPaginator(request); responses.iterator().forEachRemaining(....);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
listDbParameterGroups(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbParameterGroupsRequest)operation.- Parameters:
listDbParameterGroupsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDbParameterGroupsPaginator
default ListDbParameterGroupsIterable listDbParameterGroupsPaginator(Consumer<ListDbParameterGroupsRequest.Builder> listDbParameterGroupsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
This is a variant of
listDbParameterGroups(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbParameterGroupsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbParameterGroupsIterable responses = client.listDbParameterGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbParameterGroupsIterable responses = client .listDbParameterGroupsPaginator(request); for (software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbParameterGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.timestreaminfluxdb.paginators.ListDbParameterGroupsIterable responses = client.listDbParameterGroupsPaginator(request); responses.iterator().forEachRemaining(....);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
listDbParameterGroups(software.amazon.awssdk.services.timestreaminfluxdb.model.ListDbParameterGroupsRequest)operation.
This is a convenience which creates an instance of the
ListDbParameterGroupsRequest.Builderavoiding the need to create one manually viaListDbParameterGroupsRequest.builder()- Parameters:
listDbParameterGroupsRequest- AConsumerthat will call methods onListDbParameterGroupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
A list of tags applied to the resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The requested resource was not found or does not exist.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
A list of tags applied to the resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The requested resource was not found or does not exist.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Tags are composed of a Key/Value pairs. You can use tags to categorize and track your Timestream for InfluxDB resources.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The requested resource was not found or does not exist.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Tags are composed of a Key/Value pairs. You can use tags to categorize and track your Timestream for InfluxDB resources.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The requested resource was not found or does not exist.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Removes the tag from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The requested resource was not found or does not exist.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Removes the tag from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The requested resource was not found or does not exist.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateDbInstance
default UpdateDbInstanceResponse updateDbInstance(UpdateDbInstanceRequest updateDbInstanceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Updates a Timestream for InfluxDB DB instance.
- Parameters:
updateDbInstanceRequest-- Returns:
- Result of the UpdateDbInstance operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateDbInstance
default UpdateDbInstanceResponse updateDbInstance(Consumer<UpdateDbInstanceRequest.Builder> updateDbInstanceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, TimestreamInfluxDbException
Updates a Timestream for InfluxDB DB instance.
This is a convenience which creates an instance of the
UpdateDbInstanceRequest.Builderavoiding the need to create one manually viaUpdateDbInstanceRequest.builder()- Parameters:
updateDbInstanceRequest- AConsumerthat will call methods onUpdateDbInstanceRequest.Builderto create a request.- Returns:
- Result of the UpdateDbInstance operation returned by the service.
- Throws:
ValidationException- The input fails to satisfy the constraints specified by Timestream for InfluxDB.AccessDeniedException- You do not have sufficient access to perform this action.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The request conflicts with an existing resource in Timestream for InfluxDB.ResourceNotFoundException- The requested resource was not found or does not exist.ThrottlingException- The request was denied due to request throttling.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.TimestreamInfluxDbException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static TimestreamInfluxDbClient create()
Create aTimestreamInfluxDbClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static TimestreamInfluxDbClientBuilder builder()
Create a builder that can be used to configure and create aTimestreamInfluxDbClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default TimestreamInfluxDbServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-