Interface DsqlClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() 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. 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. lets you focus on using your data to acquire new insights for your business and customers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) The CreateCluster API allows you to create both single-Region clusters and multi-Region clusters.default CreateClusterResponsecreateCluster(CreateClusterRequest createClusterRequest) The CreateCluster API allows you to create both single-Region clusters and multi-Region clusters.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 DeleteClusterPolicyResponsedeleteClusterPolicy(Consumer<DeleteClusterPolicyRequest.Builder> deleteClusterPolicyRequest) Deletes the resource-based policy attached to a cluster.default DeleteClusterPolicyResponsedeleteClusterPolicy(DeleteClusterPolicyRequest deleteClusterPolicyRequest) Deletes the resource-based policy attached to a cluster.default GetClusterResponsegetCluster(Consumer<GetClusterRequest.Builder> getClusterRequest) Retrieves information about a cluster.default GetClusterResponsegetCluster(GetClusterRequest getClusterRequest) Retrieves information about a cluster.default GetClusterPolicyResponsegetClusterPolicy(Consumer<GetClusterPolicyRequest.Builder> getClusterPolicyRequest) Retrieves the resource-based policy document attached to a cluster.default GetClusterPolicyResponsegetClusterPolicy(GetClusterPolicyRequest getClusterPolicyRequest) Retrieves the resource-based policy document attached to a cluster.getVpcEndpointServiceName(Consumer<GetVpcEndpointServiceNameRequest.Builder> getVpcEndpointServiceNameRequest) Retrieves the VPC endpoint service name.getVpcEndpointServiceName(GetVpcEndpointServiceNameRequest getVpcEndpointServiceNameRequest) Retrieves the VPC endpoint service name.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 PutClusterPolicyResponseputClusterPolicy(Consumer<PutClusterPolicyRequest.Builder> putClusterPolicyRequest) Attaches a resource-based policy to a cluster.default PutClusterPolicyResponseputClusterPolicy(PutClusterPolicyRequest putClusterPolicyRequest) Attaches a resource-based policy to a cluster.default DsqlServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault 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) The UpdateCluster API allows you to modify both single-Region and multi-Region cluster configurations.default UpdateClusterResponseupdateCluster(UpdateClusterRequest updateClusterRequest) The UpdateCluster API allows you to modify both single-Region and multi-Region cluster configurations.default DsqlUtilitiesCreates 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
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createCluster
default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws ServiceQuotaExceededException, ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, DsqlException The CreateCluster API allows you to create both single-Region clusters and multi-Region clusters. With the addition of the multiRegionProperties parameter, you can create a cluster with witness Region support and establish peer relationships with clusters in other Regions during creation.
Creating multi-Region clusters requires additional IAM permissions beyond those needed for single-Region clusters, as detailed in the Required permissions section below.
Required permissions
- dsql:CreateCluster
-
Required to create a cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/* - dsql:TagResource
-
Permission to add tags to a resource.
Resources:
arn:aws:dsql:region:account-id:cluster/* - dsql:PutMultiRegionProperties
-
Permission to configure multi-Region properties for a cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/* - dsql:AddPeerCluster
-
When specifying
multiRegionProperties.clusters, permission to add peer clusters.Resources:
-
Local cluster:
arn:aws:dsql:region:account-id:cluster/* -
Each peer cluster: exact ARN of each specified peer cluster
-
- dsql:PutWitnessRegion
-
When specifying
multiRegionProperties.witnessRegion, permission to set a witness Region. This permission is checked both in the cluster Region and in the witness Region.Resources:
arn:aws:dsql:region:account-id:cluster/*Condition Keys:
dsql:WitnessRegion(matching the specified witness region)
-
The witness Region specified in
multiRegionProperties.witnessRegioncannot be the same as the cluster's Region.
- Parameters:
createClusterRequest-- Returns:
- Result of the CreateCluster operation returned by the service.
- See Also:
-
createCluster
default CreateClusterResponse createCluster(Consumer<CreateClusterRequest.Builder> createClusterRequest) throws ServiceQuotaExceededException, ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, DsqlException The CreateCluster API allows you to create both single-Region clusters and multi-Region clusters. With the addition of the multiRegionProperties parameter, you can create a cluster with witness Region support and establish peer relationships with clusters in other Regions during creation.
Creating multi-Region clusters requires additional IAM permissions beyond those needed for single-Region clusters, as detailed in the Required permissions section below.
Required permissions
- dsql:CreateCluster
-
Required to create a cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/* - dsql:TagResource
-
Permission to add tags to a resource.
Resources:
arn:aws:dsql:region:account-id:cluster/* - dsql:PutMultiRegionProperties
-
Permission to configure multi-Region properties for a cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/* - dsql:AddPeerCluster
-
When specifying
multiRegionProperties.clusters, permission to add peer clusters.Resources:
-
Local cluster:
arn:aws:dsql:region:account-id:cluster/* -
Each peer cluster: exact ARN of each specified peer cluster
-
- dsql:PutWitnessRegion
-
When specifying
multiRegionProperties.witnessRegion, permission to set a witness Region. This permission is checked both in the cluster Region and in the witness Region.Resources:
arn:aws:dsql:region:account-id:cluster/*Condition Keys:
dsql:WitnessRegion(matching the specified witness region)
-
The witness Region specified in
multiRegionProperties.witnessRegioncannot be the same as the cluster's Region.
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
deleteClusterPolicy
default DeleteClusterPolicyResponse deleteClusterPolicy(DeleteClusterPolicyRequest deleteClusterPolicyRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException Deletes the resource-based policy attached to a cluster. This removes all access permissions defined by the policy, reverting to default access controls.
- Parameters:
deleteClusterPolicyRequest-- Returns:
- Result of the DeleteClusterPolicy operation returned by the service.
- See Also:
-
deleteClusterPolicy
default DeleteClusterPolicyResponse deleteClusterPolicy(Consumer<DeleteClusterPolicyRequest.Builder> deleteClusterPolicyRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException Deletes the resource-based policy attached to a cluster. This removes all access permissions defined by the policy, reverting to default access controls.
This is a convenience which creates an instance of the
DeleteClusterPolicyRequest.Builderavoiding the need to create one manually viaDeleteClusterPolicyRequest.builder()- Parameters:
deleteClusterPolicyRequest- AConsumerthat will call methods onDeleteClusterPolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteClusterPolicy operation returned by the service.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
getClusterPolicy
default GetClusterPolicyResponse getClusterPolicy(GetClusterPolicyRequest getClusterPolicyRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException Retrieves the resource-based policy document attached to a cluster. This policy defines the access permissions and conditions for the cluster.
- Parameters:
getClusterPolicyRequest-- Returns:
- Result of the GetClusterPolicy operation returned by the service.
- See Also:
-
getClusterPolicy
default GetClusterPolicyResponse getClusterPolicy(Consumer<GetClusterPolicyRequest.Builder> getClusterPolicyRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException Retrieves the resource-based policy document attached to a cluster. This policy defines the access permissions and conditions for the cluster.
This is a convenience which creates an instance of the
GetClusterPolicyRequest.Builderavoiding the need to create one manually viaGetClusterPolicyRequest.builder()- Parameters:
getClusterPolicyRequest- AConsumerthat will call methods onGetClusterPolicyRequest.Builderto create a request.- Returns:
- Result of the GetClusterPolicy operation returned by the service.
- See Also:
-
getVpcEndpointServiceName
default GetVpcEndpointServiceNameResponse getVpcEndpointServiceName(GetVpcEndpointServiceNameRequest getVpcEndpointServiceNameRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException Retrieves the VPC endpoint service name.
- Parameters:
getVpcEndpointServiceNameRequest-- Returns:
- Result of the GetVpcEndpointServiceName operation returned by the service.
- See Also:
-
getVpcEndpointServiceName
default GetVpcEndpointServiceNameResponse getVpcEndpointServiceName(Consumer<GetVpcEndpointServiceNameRequest.Builder> getVpcEndpointServiceNameRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, DsqlException Retrieves the VPC endpoint service name.
This is a convenience which creates an instance of the
GetVpcEndpointServiceNameRequest.Builderavoiding the need to create one manually viaGetVpcEndpointServiceNameRequest.builder()- Parameters:
getVpcEndpointServiceNameRequest- AConsumerthat will call methods onGetVpcEndpointServiceNameRequest.Builderto create a request.- Returns:
- Result of the GetVpcEndpointServiceName operation returned by the service.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
putClusterPolicy
default PutClusterPolicyResponse putClusterPolicy(PutClusterPolicyRequest putClusterPolicyRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException Attaches a resource-based policy to a cluster. This policy defines access permissions and conditions for the cluster, allowing you to control which principals can perform actions on the cluster.
- Parameters:
putClusterPolicyRequest-- Returns:
- Result of the PutClusterPolicy operation returned by the service.
- See Also:
-
putClusterPolicy
default PutClusterPolicyResponse putClusterPolicy(Consumer<PutClusterPolicyRequest.Builder> putClusterPolicyRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException Attaches a resource-based policy to a cluster. This policy defines access permissions and conditions for the cluster, allowing you to control which principals can perform actions on the cluster.
This is a convenience which creates an instance of the
PutClusterPolicyRequest.Builderavoiding the need to create one manually viaPutClusterPolicyRequest.builder()- Parameters:
putClusterPolicyRequest- AConsumerthat will call methods onPutClusterPolicyRequest.Builderto create a request.- Returns:
- Result of the PutClusterPolicy operation returned by the service.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
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.
- See Also:
-
updateCluster
default UpdateClusterResponse updateCluster(UpdateClusterRequest updateClusterRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException The UpdateCluster API allows you to modify both single-Region and multi-Region cluster configurations. With the multiRegionProperties parameter, you can add or modify witness Region support and manage peer relationships with clusters in other Regions.
Note that updating multi-Region clusters requires additional IAM permissions beyond those needed for standard cluster updates, as detailed in the Permissions section.
Required permissions
- dsql:UpdateCluster
-
Permission to update a DSQL cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-id
- dsql:PutMultiRegionProperties
-
Permission to configure multi-Region properties for a cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-id
- dsql:GetCluster
-
Permission to retrieve cluster information.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-id - dsql:AddPeerCluster
-
Permission to add peer clusters.
Resources:
-
Local cluster:
arn:aws:dsql:region:account-id:cluster/cluster-id -
Each peer cluster: exact ARN of each specified peer cluster
-
- dsql:RemovePeerCluster
-
Permission to remove peer clusters. The dsql:RemovePeerCluster permission uses a wildcard ARN pattern to simplify permission management during updates.
Resources:
arn:aws:dsql:*:account-id:cluster/*
- dsql:PutWitnessRegion
-
Permission to set a witness Region.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-idCondition Keys: dsql:WitnessRegion (matching the specified witness Region)
This permission is checked both in the cluster Region and in the witness Region.
-
The witness region specified in
multiRegionProperties.witnessRegioncannot be the same as the cluster's Region. -
When updating clusters with peer relationships, permissions are checked for both adding and removing peers.
-
The
dsql:RemovePeerClusterpermission uses a wildcard ARN pattern to simplify permission management during updates.
- Parameters:
updateClusterRequest-- Returns:
- Result of the UpdateCluster operation returned by the service.
- See Also:
-
updateCluster
default UpdateClusterResponse updateCluster(Consumer<UpdateClusterRequest.Builder> updateClusterRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ResourceNotFoundException, ConflictException, AwsServiceException, SdkClientException, DsqlException The UpdateCluster API allows you to modify both single-Region and multi-Region cluster configurations. With the multiRegionProperties parameter, you can add or modify witness Region support and manage peer relationships with clusters in other Regions.
Note that updating multi-Region clusters requires additional IAM permissions beyond those needed for standard cluster updates, as detailed in the Permissions section.
Required permissions
- dsql:UpdateCluster
-
Permission to update a DSQL cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-id
- dsql:PutMultiRegionProperties
-
Permission to configure multi-Region properties for a cluster.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-id
- dsql:GetCluster
-
Permission to retrieve cluster information.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-id - dsql:AddPeerCluster
-
Permission to add peer clusters.
Resources:
-
Local cluster:
arn:aws:dsql:region:account-id:cluster/cluster-id -
Each peer cluster: exact ARN of each specified peer cluster
-
- dsql:RemovePeerCluster
-
Permission to remove peer clusters. The dsql:RemovePeerCluster permission uses a wildcard ARN pattern to simplify permission management during updates.
Resources:
arn:aws:dsql:*:account-id:cluster/*
- dsql:PutWitnessRegion
-
Permission to set a witness Region.
Resources:
arn:aws:dsql:region:account-id:cluster/cluster-idCondition Keys: dsql:WitnessRegion (matching the specified witness Region)
This permission is checked both in the cluster Region and in the witness Region.
-
The witness region specified in
multiRegionProperties.witnessRegioncannot be the same as the cluster's Region. -
When updating clusters with peer relationships, permissions are checked for both adding and removing peers.
-
The
dsql:RemovePeerClusterpermission uses a wildcard ARN pattern to simplify permission management during updates.
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.
- See Also:
-
utilities
Creates an instance ofDsqlUtilitiesobject with the configuration set on this client. -
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
Create aDsqlClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aDsqlClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-