TimestreamQueryClient#
Index > TimestreamQuery > TimestreamQueryClient
Auto-generated documentation for TimestreamQuery type annotations stubs module mypy-boto3-timestream-query.
TimestreamQueryClient#
Type annotations and code completion for boto3.client("timestream-query")
.
boto3 documentation
# TimestreamQueryClient usage example
from boto3.session import Session
from mypy_boto3_timestream_query.client import TimestreamQueryClient
def get_timestream-query_client() -> TimestreamQueryClient:
return Session().client("timestream-query")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("timestream-query").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("timestream-query")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.InvalidEndpointException,
client.exceptions.QueryExecutionException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_timestream_query.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...