AuroraDSQLClient#
Index > AuroraDSQL > AuroraDSQLClient
Auto-generated documentation for AuroraDSQL type annotations stubs module types-boto3-dsql.
AuroraDSQLClient#
Type annotations and code completion for boto3.client("dsql")
.
boto3 documentation
# AuroraDSQLClient usage example
from boto3.session import Session
from types_boto3_dsql.client import AuroraDSQLClient
def get_dsql_client() -> AuroraDSQLClient:
return Session().client("dsql")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("dsql").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("dsql")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from types_boto3_dsql.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("dsql").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("dsql").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
create_cluster#
Creates a cluster in Amazon Aurora DSQL.
Type annotations and code completion for boto3.client("dsql").create_cluster
method.
boto3 documentation
# create_cluster method definition
def create_cluster(
self,
*,
deletionProtectionEnabled: bool = ...,
tags: Mapping[str, str] = ...,
clientToken: str = ...,
) -> CreateClusterOutputTypeDef: # (1)
...
# create_cluster method usage example with argument unpacking
kwargs: CreateClusterInputRequestTypeDef = { # (1)
"deletionProtectionEnabled": ...,
}
parent.create_cluster(**kwargs)
create_multi_region_clusters#
Creates multi-Region clusters in Amazon Aurora DSQL.
Type annotations and code completion for boto3.client("dsql").create_multi_region_clusters
method.
boto3 documentation
# create_multi_region_clusters method definition
def create_multi_region_clusters(
self,
*,
linkedRegionList: Sequence[str],
witnessRegion: str,
clusterProperties: Mapping[str, LinkedClusterPropertiesTypeDef] = ..., # (1)
clientToken: str = ...,
) -> CreateMultiRegionClustersOutputTypeDef: # (2)
...
# create_multi_region_clusters method usage example with argument unpacking
kwargs: CreateMultiRegionClustersInputRequestTypeDef = { # (1)
"linkedRegionList": ...,
"witnessRegion": ...,
}
parent.create_multi_region_clusters(**kwargs)
delete_cluster#
Deletes a cluster in Amazon Aurora DSQL.
Type annotations and code completion for boto3.client("dsql").delete_cluster
method.
boto3 documentation
# delete_cluster method definition
def delete_cluster(
self,
*,
identifier: str,
clientToken: str = ...,
) -> DeleteClusterOutputTypeDef: # (1)
...
# delete_cluster method usage example with argument unpacking
kwargs: DeleteClusterInputRequestTypeDef = { # (1)
"identifier": ...,
}
parent.delete_cluster(**kwargs)
delete_multi_region_clusters#
Deletes a multi-Region cluster in Amazon Aurora DSQL.
Type annotations and code completion for boto3.client("dsql").delete_multi_region_clusters
method.
boto3 documentation
# delete_multi_region_clusters method definition
def delete_multi_region_clusters(
self,
*,
linkedClusterArns: Sequence[str],
clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_multi_region_clusters method usage example with argument unpacking
kwargs: DeleteMultiRegionClustersInputRequestTypeDef = { # (1)
"linkedClusterArns": ...,
}
parent.delete_multi_region_clusters(**kwargs)
get_cluster#
Retrieves information about a cluster.
Type annotations and code completion for boto3.client("dsql").get_cluster
method.
boto3 documentation
# get_cluster method definition
def get_cluster(
self,
*,
identifier: str,
) -> GetClusterOutputTypeDef: # (1)
...
# get_cluster method usage example with argument unpacking
kwargs: GetClusterInputRequestTypeDef = { # (1)
"identifier": ...,
}
parent.get_cluster(**kwargs)
list_clusters#
Retrieves information about a list of clusters.
Type annotations and code completion for boto3.client("dsql").list_clusters
method.
boto3 documentation
# list_clusters method definition
def list_clusters(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListClustersOutputTypeDef: # (1)
...
# list_clusters method usage example with argument unpacking
kwargs: ListClustersInputRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_clusters(**kwargs)
list_tags_for_resource#
Lists all of the tags for a resource.
Type annotations and code completion for boto3.client("dsql").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceOutputTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceInputRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
tag_resource#
Tags a resource with a map of key and value pairs.
Type annotations and code completion for boto3.client("dsql").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceInputRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Removes a tag from a resource.
Type annotations and code completion for boto3.client("dsql").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceInputRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_cluster#
Updates a cluster.
Type annotations and code completion for boto3.client("dsql").update_cluster
method.
boto3 documentation
# update_cluster method definition
def update_cluster(
self,
*,
identifier: str,
deletionProtectionEnabled: bool = ...,
clientToken: str = ...,
) -> UpdateClusterOutputTypeDef: # (1)
...
# update_cluster method usage example with argument unpacking
kwargs: UpdateClusterInputRequestTypeDef = { # (1)
"identifier": ...,
}
parent.update_cluster(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("dsql").get_paginator
method with overloads.
client.get_paginator("list_clusters")
-> ListClustersPaginator
get_waiter#
Type annotations and code completion for boto3.client("dsql").get_waiter
method with overloads.
client.get_waiter("cluster_active")
-> ClusterActiveWaiterclient.get_waiter("cluster_not_exists")
-> ClusterNotExistsWaiter