Interface DsqlClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface DsqlClient extends AwsClient
Service client for accessing Amazon Aurora DSQL. This can be created using the staticbuilder()method.This is an interface reference for Amazon Aurora DSQL. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Aurora DSQL.
Amazon Aurora DSQL is a serverless, distributed SQL database suitable for workloads of any size. Aurora DSQL is available in both single-Region and multi-Region configurations, so your clusters and databases are always available even if an Availability Zone or an Amazon Web Services Region are unavailable. Aurora DSQL lets you focus on using your data to acquire new insights for your business and customers.
-
-
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
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DsqlClientBuilderbuilder()Create a builder that can be used to configure and create aDsqlClient.static DsqlClientcreate()Create aDsqlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateClusterResponsecreateCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest)Creates a cluster in Amazon Aurora DSQL.default CreateClusterResponsecreateCluster(CreateClusterRequest createClusterRequest)Creates a cluster in Amazon Aurora DSQL.default CreateMultiRegionClustersResponsecreateMultiRegionClusters(Consumer<CreateMultiRegionClustersRequest.Builder> createMultiRegionClustersRequest)Creates multi-Region clusters in Amazon Aurora DSQL.default CreateMultiRegionClustersResponsecreateMultiRegionClusters(CreateMultiRegionClustersRequest createMultiRegionClustersRequest)Creates multi-Region clusters in Amazon Aurora DSQL.default DeleteClusterResponsedeleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest)Deletes a cluster in Amazon Aurora DSQL.default DeleteClusterResponsedeleteCluster(DeleteClusterRequest deleteClusterRequest)Deletes a cluster in Amazon Aurora DSQL.default DeleteMultiRegionClustersResponsedeleteMultiRegionClusters(Consumer<DeleteMultiRegionClustersRequest.Builder> deleteMultiRegionClustersRequest)Deletes a multi-Region cluster in Amazon Aurora DSQL.default DeleteMultiRegionClustersResponsedeleteMultiRegionClusters(DeleteMultiRegionClustersRequest deleteMultiRegionClustersRequest)Deletes a multi-Region cluster in Amazon Aurora DSQL.default GetClusterResponsegetCluster(Consumer<GetClusterRequest.Builder> getClusterRequest)Retrieves information about a cluster.default GetClusterResponsegetCluster(GetClusterRequest getClusterRequest)Retrieves information about a cluster.default ListClustersResponselistClusters(Consumer<ListClustersRequest.Builder> listClustersRequest)Retrieves information about a list of clusters.default ListClustersResponselistClusters(ListClustersRequest listClustersRequest)Retrieves information about a list of clusters.default ListClustersIterablelistClustersPaginator(Consumer<ListClustersRequest.Builder> listClustersRequest)This is a variant oflistClusters(software.amazon.awssdk.services.dsql.model.ListClustersRequest)operation.default ListClustersIterablelistClustersPaginator(ListClustersRequest listClustersRequest)This is a variant oflistClusters(software.amazon.awssdk.services.dsql.model.ListClustersRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)Lists all of the tags for a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)Lists all of the tags for a resource.default DsqlServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)Tags a resource with a map of key and value pairs.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest)Tags a resource with a map of key and value pairs.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)Removes a tag from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest)Removes a tag from a resource.default UpdateClusterResponseupdateCluster(Consumer<UpdateClusterRequest.Builder> updateClusterRequest)Updates a cluster.default UpdateClusterResponseupdateCluster(UpdateClusterRequest updateClusterRequest)Updates a cluster.default DsqlUtilitiesutilities()Creates an instance ofDsqlUtilitiesobject with the configuration set on this client.default DsqlWaiterwaiter()Create an instance ofDsqlWaiterusing this client.-
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
-
createCluster
default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Creates a cluster in Amazon Aurora DSQL.
- Parameters:
createClusterRequest-- Returns:
- Result of the CreateCluster operation returned by the service.
- Throws:
ServiceQuotaExceededException- The service limit was exceeded.ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createCluster
default CreateClusterResponse createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Creates a cluster in Amazon Aurora DSQL.
This is a convenience which creates an instance of the
CreateClusterRequest.Builderavoiding the need to create one manually viaCreateClusterRequest.builder()- Parameters:
createClusterRequest- AConsumerthat will call methods onCreateClusterRequest.Builderto create a request.- Returns:
- Result of the CreateCluster operation returned by the service.
- Throws:
ServiceQuotaExceededException- The service limit was exceeded.ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createMultiRegionClusters
default CreateMultiRegionClustersResponse createMultiRegionClusters(CreateMultiRegionClustersRequest createMultiRegionClustersRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Creates multi-Region clusters in Amazon Aurora DSQL. Multi-Region clusters require a linked Region list, which is an array of the Regions in which you want to create linked clusters. Multi-Region clusters require a witness Region, which participates in quorum in failure scenarios.
- Parameters:
createMultiRegionClustersRequest-- Returns:
- Result of the CreateMultiRegionClusters operation returned by the service.
- Throws:
ServiceQuotaExceededException- The service limit was exceeded.ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createMultiRegionClusters
default CreateMultiRegionClustersResponse createMultiRegionClusters(Consumer<CreateMultiRegionClustersRequest.Builder> createMultiRegionClustersRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Creates multi-Region clusters in Amazon Aurora DSQL. Multi-Region clusters require a linked Region list, which is an array of the Regions in which you want to create linked clusters. Multi-Region clusters require a witness Region, which participates in quorum in failure scenarios.
This is a convenience which creates an instance of the
CreateMultiRegionClustersRequest.Builderavoiding the need to create one manually viaCreateMultiRegionClustersRequest.builder()- Parameters:
createMultiRegionClustersRequest- AConsumerthat will call methods onCreateMultiRegionClustersRequest.Builderto create a request.- Returns:
- Result of the CreateMultiRegionClusters operation returned by the service.
- Throws:
ServiceQuotaExceededException- The service limit was exceeded.ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteCluster
default DeleteClusterResponse deleteCluster(DeleteClusterRequest deleteClusterRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Deletes a cluster in Amazon Aurora DSQL.
- Parameters:
deleteClusterRequest-- Returns:
- Result of the DeleteCluster operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteCluster
default DeleteClusterResponse deleteCluster(Consumer<DeleteClusterRequest.Builder> deleteClusterRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Deletes a cluster in Amazon Aurora DSQL.
This is a convenience which creates an instance of the
DeleteClusterRequest.Builderavoiding the need to create one manually viaDeleteClusterRequest.builder()- Parameters:
deleteClusterRequest- AConsumerthat will call methods onDeleteClusterRequest.Builderto create a request.- Returns:
- Result of the DeleteCluster operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteMultiRegionClusters
default DeleteMultiRegionClustersResponse deleteMultiRegionClusters(DeleteMultiRegionClustersRequest deleteMultiRegionClustersRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Deletes a multi-Region cluster in Amazon Aurora DSQL.
- Parameters:
deleteMultiRegionClustersRequest-- Returns:
- Result of the DeleteMultiRegionClusters operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteMultiRegionClusters
default DeleteMultiRegionClustersResponse deleteMultiRegionClusters(Consumer<DeleteMultiRegionClustersRequest.Builder> deleteMultiRegionClustersRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Deletes a multi-Region cluster in Amazon Aurora DSQL.
This is a convenience which creates an instance of the
DeleteMultiRegionClustersRequest.Builderavoiding the need to create one manually viaDeleteMultiRegionClustersRequest.builder()- Parameters:
deleteMultiRegionClustersRequest- AConsumerthat will call methods onDeleteMultiRegionClustersRequest.Builderto create a request.- Returns:
- Result of the DeleteMultiRegionClusters operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getCluster
default GetClusterResponse getCluster(GetClusterRequest getClusterRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Retrieves information about a cluster.
- Parameters:
getClusterRequest-- Returns:
- Result of the GetCluster operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getCluster
default GetClusterResponse getCluster(Consumer<GetClusterRequest.Builder> getClusterRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Retrieves information about a cluster.
This is a convenience which creates an instance of the
GetClusterRequest.Builderavoiding the need to create one manually viaGetClusterRequest.builder()- Parameters:
getClusterRequest- AConsumerthat will call methods onGetClusterRequest.Builderto create a request.- Returns:
- Result of the GetCluster operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listClusters
default ListClustersResponse listClusters(ListClustersRequest listClustersRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Retrieves information about a list of clusters.
- Parameters:
listClustersRequest-- Returns:
- Result of the ListClusters operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listClusters
default ListClustersResponse listClusters(Consumer<ListClustersRequest.Builder> listClustersRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Retrieves information about a list of clusters.
This is a convenience which creates an instance of the
ListClustersRequest.Builderavoiding the need to create one manually viaListClustersRequest.builder()- Parameters:
listClustersRequest- AConsumerthat will call methods onListClustersRequest.Builderto create a request.- Returns:
- Result of the ListClusters operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listClustersPaginator
default ListClustersIterable listClustersPaginator(ListClustersRequest listClustersRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
This is a variant of
listClusters(software.amazon.awssdk.services.dsql.model.ListClustersRequest)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.dsql.paginators.ListClustersIterable responses = client.listClustersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.dsql.paginators.ListClustersIterable responses = client.listClustersPaginator(request); for (software.amazon.awssdk.services.dsql.model.ListClustersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.dsql.paginators.ListClustersIterable responses = client.listClustersPaginator(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
listClusters(software.amazon.awssdk.services.dsql.model.ListClustersRequest)operation.- Parameters:
listClustersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listClustersPaginator
default ListClustersIterable listClustersPaginator(Consumer<ListClustersRequest.Builder> listClustersRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
This is a variant of
listClusters(software.amazon.awssdk.services.dsql.model.ListClustersRequest)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.dsql.paginators.ListClustersIterable responses = client.listClustersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.dsql.paginators.ListClustersIterable responses = client.listClustersPaginator(request); for (software.amazon.awssdk.services.dsql.model.ListClustersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.dsql.paginators.ListClustersIterable responses = client.listClustersPaginator(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
listClusters(software.amazon.awssdk.services.dsql.model.ListClustersRequest)operation.
This is a convenience which creates an instance of the
ListClustersRequest.Builderavoiding the need to create one manually viaListClustersRequest.builder()- Parameters:
listClustersRequest- AConsumerthat will call methods onListClustersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- 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 ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Lists all of the tags for a resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- 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 ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Lists all of the tags for a 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:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- 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 ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Tags a resource with a map of key and value pairs.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ServiceQuotaExceededException- The service limit was exceeded.ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- 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 ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Tags a resource with a map of key and value pairs.
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:
ServiceQuotaExceededException- The service limit was exceeded.ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- 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 ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Removes a tag from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- 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 ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException
Removes a tag from a 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:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateCluster
default UpdateClusterResponse updateCluster(UpdateClusterRequest updateClusterRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Updates a cluster.
- Parameters:
updateClusterRequest-- Returns:
- Result of the UpdateCluster operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateCluster
default UpdateClusterResponse updateCluster(Consumer<UpdateClusterRequest.Builder> updateClusterRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException
Updates a cluster.
This is a convenience which creates an instance of the
UpdateClusterRequest.Builderavoiding the need to create one manually viaUpdateClusterRequest.builder()- Parameters:
updateClusterRequest- AConsumerthat will call methods onUpdateClusterRequest.Builderto create a request.- Returns:
- Result of the UpdateCluster operation returned by the service.
- Throws:
ThrottlingException- The request was denied due to request throttling.AccessDeniedException- You do not have sufficient access to perform this action.ValidationException- The input failed to satisfy the constraints specified by an Amazon Web Services service.InternalServerException- The request processing has failed because of an unknown error, exception or failure.ResourceNotFoundException- The resource could not be found.ConflictException- The submitted action has conflicts.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.DsqlException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
utilities
default DsqlUtilities utilities()
Creates an instance ofDsqlUtilitiesobject with the configuration set on this client.
-
waiter
default DsqlWaiter waiter()
Create an instance ofDsqlWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
DsqlWaiter
-
create
static DsqlClient create()
Create aDsqlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static DsqlClientBuilder builder()
Create a builder that can be used to configure and create aDsqlClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default DsqlServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-