CloudTrailDataServiceClient#
Index > CloudTrailDataService > CloudTrailDataServiceClient
Auto-generated documentation for CloudTrailDataService type annotations stubs module mypy-boto3-cloudtrail-data.
CloudTrailDataServiceClient#
Type annotations and code completion for boto3.client("cloudtrail-data")
.
boto3 documentation
# CloudTrailDataServiceClient usage example
from boto3.session import Session
from mypy_boto3_cloudtrail_data.client import CloudTrailDataServiceClient
def get_cloudtrail-data_client() -> CloudTrailDataServiceClient:
return Session().client("cloudtrail-data")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("cloudtrail-data").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("cloudtrail-data")
try:
do_something(client)
except (
client.exceptions.ChannelInsufficientPermission,
client.exceptions.ChannelNotFound,
client.exceptions.ChannelUnsupportedSchema,
client.exceptions.ClientError,
client.exceptions.DuplicatedAuditEventId,
client.exceptions.InvalidChannelARN,
client.exceptions.UnsupportedOperationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_cloudtrail_data.client import Exceptions
def handle_error(exc: Exceptions.ChannelInsufficientPermission) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("cloudtrail-data").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("cloudtrail-data").generate_presigned_url
method.