SimpleDBv2Client#
Index > SimpleDBv2 > SimpleDBv2Client
Auto-generated documentation for SimpleDBv2 type annotations stubs module mypy-boto3-simpledbv2.
SimpleDBv2Client#
Type annotations and code completion for boto3.client("simpledbv2").
boto3 documentation
# SimpleDBv2Client usage example
from boto3.session import Session
from mypy_boto3_simpledbv2.client import SimpleDBv2Client
def get_simpledbv2_client() -> SimpleDBv2Client:
return Session().client("simpledbv2")
Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("simpledbv2").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("simpledbv2")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InvalidNextTokenException,
client.exceptions.InvalidParameterCombinationException,
client.exceptions.InvalidParameterValueException,
client.exceptions.NoSuchDomainException,
client.exceptions.NoSuchExportException,
client.exceptions.NumberExportsLimitExceeded,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_simpledbv2.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("simpledbv2").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("simpledbv2").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:
...
get_export#
Returns information for an existing domain export.
Type annotations and code completion for boto3.client("simpledbv2").get_export method.
boto3 documentation
# get_export method definition
def get_export(
self,
*,
exportArn: str,
) -> GetExportResponseTypeDef: # (1)
...
# get_export method usage example with argument unpacking
kwargs: GetExportRequestTypeDef = { # (1)
"exportArn": ...,
}
parent.get_export(**kwargs)
list_exports#
Lists all exports that were created.
Type annotations and code completion for boto3.client("simpledbv2").list_exports method.
boto3 documentation
# list_exports method definition
def list_exports(
self,
*,
domainName: str = ...,
maxResults: int = ...,
nextToken: str = ...,
) -> ListExportsResponseTypeDef: # (1)
...
# list_exports method usage example with argument unpacking
kwargs: ListExportsRequestTypeDef = { # (1)
"domainName": ...,
}
parent.list_exports(**kwargs)
start_domain_export#
Initiates the export of a SimpleDB domain to an S3 bucket.
Type annotations and code completion for boto3.client("simpledbv2").start_domain_export method.
boto3 documentation
# start_domain_export method definition
def start_domain_export(
self,
*,
domainName: str,
s3Bucket: str,
clientToken: str = ...,
s3KeyPrefix: str = ...,
s3SseAlgorithm: S3SseAlgorithmType = ..., # (1)
s3SseKmsKeyId: str = ...,
s3BucketOwner: str = ...,
) -> StartDomainExportResponseTypeDef: # (2)
...
# start_domain_export method usage example with argument unpacking
kwargs: StartDomainExportRequestTypeDef = { # (1)
"domainName": ...,
"s3Bucket": ...,
}
parent.start_domain_export(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("simpledbv2").get_paginator method with overloads.
client.get_paginator("list_exports")-> ListExportsPaginator
get_waiter#
Type annotations and code completion for boto3.client("simpledbv2").get_waiter method with overloads.
client.get_waiter("export_succeeded")-> ExportSucceededWaiter