Skip to content

AuroraDSQLClient#

Index > AuroraDSQL > AuroraDSQLClient

Auto-generated documentation for AuroraDSQL type annotations stubs module mypy-boto3-dsql.

AuroraDSQLClient#

Type annotations and code completion for boto3.client("dsql"). boto3 documentation

# AuroraDSQLClient usage example

from boto3.session import Session
from mypy_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 mypy_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:
    ...

close#

Type annotations and code completion for boto3.client("dsql").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

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)
    ...
  1. See CreateClusterOutputTypeDef
# create_cluster method usage example with argument unpacking

kwargs: CreateClusterInputRequestTypeDef = {  # (1)
    "deletionProtectionEnabled": ...,
}

parent.create_cluster(**kwargs)
  1. See CreateClusterInputRequestTypeDef

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)
    ...
  1. See LinkedClusterPropertiesTypeDef
  2. See CreateMultiRegionClustersOutputTypeDef
# create_multi_region_clusters method usage example with argument unpacking

kwargs: CreateMultiRegionClustersInputRequestTypeDef = {  # (1)
    "linkedRegionList": ...,
    "witnessRegion": ...,
}

parent.create_multi_region_clusters(**kwargs)
  1. See CreateMultiRegionClustersInputRequestTypeDef

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)
    ...
  1. See DeleteClusterOutputTypeDef
# delete_cluster method usage example with argument unpacking

kwargs: DeleteClusterInputRequestTypeDef = {  # (1)
    "identifier": ...,
}

parent.delete_cluster(**kwargs)
  1. See DeleteClusterInputRequestTypeDef

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)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_multi_region_clusters method usage example with argument unpacking

kwargs: DeleteMultiRegionClustersInputRequestTypeDef = {  # (1)
    "linkedClusterArns": ...,
}

parent.delete_multi_region_clusters(**kwargs)
  1. See DeleteMultiRegionClustersInputRequestTypeDef

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)
    ...
  1. See GetClusterOutputTypeDef
# get_cluster method usage example with argument unpacking

kwargs: GetClusterInputRequestTypeDef = {  # (1)
    "identifier": ...,
}

parent.get_cluster(**kwargs)
  1. See GetClusterInputRequestTypeDef

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)
    ...
  1. See ListClustersOutputTypeDef
# list_clusters method usage example with argument unpacking

kwargs: ListClustersInputRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_clusters(**kwargs)
  1. See ListClustersInputRequestTypeDef

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)
    ...
  1. See ListTagsForResourceOutputTypeDef
# list_tags_for_resource method usage example with argument unpacking

kwargs: ListTagsForResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceInputRequestTypeDef

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)
    ...
  1. See EmptyResponseMetadataTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceInputRequestTypeDef

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)
    ...
  1. See EmptyResponseMetadataTypeDef
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceInputRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceInputRequestTypeDef

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)
    ...
  1. See UpdateClusterOutputTypeDef
# update_cluster method usage example with argument unpacking

kwargs: UpdateClusterInputRequestTypeDef = {  # (1)
    "identifier": ...,
}

parent.update_cluster(**kwargs)
  1. See UpdateClusterInputRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("dsql").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for boto3.client("dsql").get_waiter method with overloads.