Skip to content

CloudTrailClient

Index > CloudTrail > CloudTrailClient

Auto-generated documentation for CloudTrail type annotations stubs module types-aiobotocore-cloudtrail.

CloudTrailClient

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

Usage example
from aioboto3.session import Session
from types_aiobotocore_cloudtrail.client import CloudTrailClient

session = Session()
async with session.client("cloudtrail") as client:
    client: CloudTrailClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("cloudtrail").exceptions structure.

Usage example
async with session.client("cloudtrail") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.CloudTrailARNInvalidException,
        client.CloudTrailAccessNotEnabledException,
        client.CloudTrailInvalidClientTokenIdException,
        client.CloudWatchLogsDeliveryUnavailableException,
        client.ConflictException,
        client.EventDataStoreARNInvalidException,
        client.EventDataStoreAlreadyExistsException,
        client.EventDataStoreMaxLimitExceededException,
        client.EventDataStoreNotFoundException,
        client.EventDataStoreTerminationProtectedException,
        client.InactiveEventDataStoreException,
        client.InactiveQueryException,
        client.InsightNotEnabledException,
        client.InsufficientDependencyServiceAccessPermissionException,
        client.InsufficientEncryptionPolicyException,
        client.InsufficientS3BucketPolicyException,
        client.InsufficientSnsTopicPolicyException,
        client.InvalidCloudWatchLogsLogGroupArnException,
        client.InvalidCloudWatchLogsRoleArnException,
        client.InvalidDateRangeException,
        client.InvalidEventCategoryException,
        client.InvalidEventDataStoreStatusException,
        client.InvalidEventSelectorsException,
        client.InvalidHomeRegionException,
        client.InvalidInsightSelectorsException,
        client.InvalidKmsKeyIdException,
        client.InvalidLookupAttributesException,
        client.InvalidMaxResultsException,
        client.InvalidNextTokenException,
        client.InvalidParameterCombinationException,
        client.InvalidParameterException,
        client.InvalidQueryStatementException,
        client.InvalidQueryStatusException,
        client.InvalidS3BucketNameException,
        client.InvalidS3PrefixException,
        client.InvalidSnsTopicNameException,
        client.InvalidTagParameterException,
        client.InvalidTimeRangeException,
        client.InvalidTokenException,
        client.InvalidTrailNameException,
        client.KmsException,
        client.KmsKeyDisabledException,
        client.KmsKeyNotFoundException,
        client.MaxConcurrentQueriesException,
        client.MaximumNumberOfTrailsExceededException,
        client.NotOrganizationMasterAccountException,
        client.OperationNotPermittedException,
        client.OrganizationNotInAllFeaturesModeException,
        client.OrganizationsNotInUseException,
        client.QueryIdNotFoundException,
        client.ResourceNotFoundException,
        client.ResourceTypeNotSupportedException,
        client.S3BucketDoesNotExistException,
        client.TagsLimitExceededException,
        client.TrailAlreadyExistsException,
        client.TrailNotFoundException,
        client.TrailNotProvidedException,
        client.UnsupportedOperationException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_cloudtrail.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods

add_tags

Adds one or more tags to a trail or event data store, up to a limit of 50.

Type annotations and code completion for session.client("cloudtrail").add_tags method. boto3 documentation

Method definition
await def add_tags(
    self,
    *,
    ResourceId: str,
    TagsList: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: AddTagsRequestRequestTypeDef = {  # (1)
    "ResourceId": ...,
    "TagsList": ...,
}

parent.add_tags(**kwargs)
  1. See AddTagsRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("cloudtrail").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

cancel_query

Cancels a query if the query is not in a terminated state, such as CANCELLED , FAILED , TIMED_OUT , or FINISHED.

Type annotations and code completion for session.client("cloudtrail").cancel_query method. boto3 documentation

Method definition
await def cancel_query(
    self,
    *,
    EventDataStore: str,
    QueryId: str,
) -> CancelQueryResponseTypeDef:  # (1)
    ...
  1. See CancelQueryResponseTypeDef
Usage example with kwargs
kwargs: CancelQueryRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
    "QueryId": ...,
}

parent.cancel_query(**kwargs)
  1. See CancelQueryRequestRequestTypeDef

close

Closes underlying endpoint connections.

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

Method definition
await def close(
    self,
) -> None:
    ...

create_event_data_store

Creates a new event data store.

Type annotations and code completion for session.client("cloudtrail").create_event_data_store method. boto3 documentation

Method definition
await def create_event_data_store(
    self,
    *,
    Name: str,
    AdvancedEventSelectors: Sequence[AdvancedEventSelectorTypeDef] = ...,  # (1)
    MultiRegionEnabled: bool = ...,
    OrganizationEnabled: bool = ...,
    RetentionPeriod: int = ...,
    TerminationProtectionEnabled: bool = ...,
    TagsList: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateEventDataStoreResponseTypeDef:  # (3)
    ...
  1. See AdvancedEventSelectorTypeDef
  2. See TagTypeDef
  3. See CreateEventDataStoreResponseTypeDef
Usage example with kwargs
kwargs: CreateEventDataStoreRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.create_event_data_store(**kwargs)
  1. See CreateEventDataStoreRequestRequestTypeDef

create_trail

Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.

Type annotations and code completion for session.client("cloudtrail").create_trail method. boto3 documentation

Method definition
await def create_trail(
    self,
    *,
    Name: str,
    S3BucketName: str,
    S3KeyPrefix: str = ...,
    SnsTopicName: str = ...,
    IncludeGlobalServiceEvents: bool = ...,
    IsMultiRegionTrail: bool = ...,
    EnableLogFileValidation: bool = ...,
    CloudWatchLogsLogGroupArn: str = ...,
    CloudWatchLogsRoleArn: str = ...,
    KmsKeyId: str = ...,
    IsOrganizationTrail: bool = ...,
    TagsList: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateTrailResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateTrailResponseTypeDef
Usage example with kwargs
kwargs: CreateTrailRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "S3BucketName": ...,
}

parent.create_trail(**kwargs)
  1. See CreateTrailRequestRequestTypeDef

delete_event_data_store

Disables the event data store specified by EventDataStore , which accepts an event data store ARN.

Type annotations and code completion for session.client("cloudtrail").delete_event_data_store method. boto3 documentation

Method definition
await def delete_event_data_store(
    self,
    *,
    EventDataStore: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteEventDataStoreRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
}

parent.delete_event_data_store(**kwargs)
  1. See DeleteEventDataStoreRequestRequestTypeDef

delete_trail

Deletes a trail.

Type annotations and code completion for session.client("cloudtrail").delete_trail method. boto3 documentation

Method definition
await def delete_trail(
    self,
    *,
    Name: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteTrailRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.delete_trail(**kwargs)
  1. See DeleteTrailRequestRequestTypeDef

describe_query

Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status.

Type annotations and code completion for session.client("cloudtrail").describe_query method. boto3 documentation

Method definition
await def describe_query(
    self,
    *,
    EventDataStore: str,
    QueryId: str,
) -> DescribeQueryResponseTypeDef:  # (1)
    ...
  1. See DescribeQueryResponseTypeDef
Usage example with kwargs
kwargs: DescribeQueryRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
    "QueryId": ...,
}

parent.describe_query(**kwargs)
  1. See DescribeQueryRequestRequestTypeDef

describe_trails

Retrieves settings for one or more trails associated with the current region for your account.

Type annotations and code completion for session.client("cloudtrail").describe_trails method. boto3 documentation

Method definition
await def describe_trails(
    self,
    *,
    trailNameList: Sequence[str] = ...,
    includeShadowTrails: bool = ...,
) -> DescribeTrailsResponseTypeDef:  # (1)
    ...
  1. See DescribeTrailsResponseTypeDef
Usage example with kwargs
kwargs: DescribeTrailsRequestRequestTypeDef = {  # (1)
    "trailNameList": ...,
}

parent.describe_trails(**kwargs)
  1. See DescribeTrailsRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.client("cloudtrail").generate_presigned_url method. boto3 documentation

Method definition
await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_event_data_store

Returns information about an event data store specified as either an ARN or the ID portion of the ARN.

Type annotations and code completion for session.client("cloudtrail").get_event_data_store method. boto3 documentation

Method definition
await def get_event_data_store(
    self,
    *,
    EventDataStore: str,
) -> GetEventDataStoreResponseTypeDef:  # (1)
    ...
  1. See GetEventDataStoreResponseTypeDef
Usage example with kwargs
kwargs: GetEventDataStoreRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
}

parent.get_event_data_store(**kwargs)
  1. See GetEventDataStoreRequestRequestTypeDef

get_event_selectors

Describes the settings for the event selectors that you configured for your trail.

Type annotations and code completion for session.client("cloudtrail").get_event_selectors method. boto3 documentation

Method definition
await def get_event_selectors(
    self,
    *,
    TrailName: str,
) -> GetEventSelectorsResponseTypeDef:  # (1)
    ...
  1. See GetEventSelectorsResponseTypeDef
Usage example with kwargs
kwargs: GetEventSelectorsRequestRequestTypeDef = {  # (1)
    "TrailName": ...,
}

parent.get_event_selectors(**kwargs)
  1. See GetEventSelectorsRequestRequestTypeDef

get_insight_selectors

Describes the settings for the Insights event selectors that you configured for your trail.

Type annotations and code completion for session.client("cloudtrail").get_insight_selectors method. boto3 documentation

Method definition
await def get_insight_selectors(
    self,
    *,
    TrailName: str,
) -> GetInsightSelectorsResponseTypeDef:  # (1)
    ...
  1. See GetInsightSelectorsResponseTypeDef
Usage example with kwargs
kwargs: GetInsightSelectorsRequestRequestTypeDef = {  # (1)
    "TrailName": ...,
}

parent.get_insight_selectors(**kwargs)
  1. See GetInsightSelectorsRequestRequestTypeDef

get_query_results

Gets event data results of a query.

Type annotations and code completion for session.client("cloudtrail").get_query_results method. boto3 documentation

Method definition
await def get_query_results(
    self,
    *,
    EventDataStore: str,
    QueryId: str,
    NextToken: str = ...,
    MaxQueryResults: int = ...,
) -> GetQueryResultsResponseTypeDef:  # (1)
    ...
  1. See GetQueryResultsResponseTypeDef
Usage example with kwargs
kwargs: GetQueryResultsRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
    "QueryId": ...,
}

parent.get_query_results(**kwargs)
  1. See GetQueryResultsRequestRequestTypeDef

get_trail

Returns settings information for a specified trail.

Type annotations and code completion for session.client("cloudtrail").get_trail method. boto3 documentation

Method definition
await def get_trail(
    self,
    *,
    Name: str,
) -> GetTrailResponseTypeDef:  # (1)
    ...
  1. See GetTrailResponseTypeDef
Usage example with kwargs
kwargs: GetTrailRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.get_trail(**kwargs)
  1. See GetTrailRequestRequestTypeDef

get_trail_status

Returns a JSON-formatted list of information about the specified trail.

Type annotations and code completion for session.client("cloudtrail").get_trail_status method. boto3 documentation

Method definition
await def get_trail_status(
    self,
    *,
    Name: str,
) -> GetTrailStatusResponseTypeDef:  # (1)
    ...
  1. See GetTrailStatusResponseTypeDef
Usage example with kwargs
kwargs: GetTrailStatusRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.get_trail_status(**kwargs)
  1. See GetTrailStatusRequestRequestTypeDef

list_event_data_stores

Returns information about all event data stores in the account, in the current region.

Type annotations and code completion for session.client("cloudtrail").list_event_data_stores method. boto3 documentation

Method definition
await def list_event_data_stores(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListEventDataStoresResponseTypeDef:  # (1)
    ...
  1. See ListEventDataStoresResponseTypeDef
Usage example with kwargs
kwargs: ListEventDataStoresRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_event_data_stores(**kwargs)
  1. See ListEventDataStoresRequestRequestTypeDef

list_public_keys

Returns all public keys whose private keys were used to sign the digest files within the specified time range.

Type annotations and code completion for session.client("cloudtrail").list_public_keys method. boto3 documentation

Method definition
await def list_public_keys(
    self,
    *,
    StartTime: Union[datetime, str] = ...,
    EndTime: Union[datetime, str] = ...,
    NextToken: str = ...,
) -> ListPublicKeysResponseTypeDef:  # (1)
    ...
  1. See ListPublicKeysResponseTypeDef
Usage example with kwargs
kwargs: ListPublicKeysRequestRequestTypeDef = {  # (1)
    "StartTime": ...,
}

parent.list_public_keys(**kwargs)
  1. See ListPublicKeysRequestRequestTypeDef

list_queries

Returns a list of queries and query statuses for the past seven days.

Type annotations and code completion for session.client("cloudtrail").list_queries method. boto3 documentation

Method definition
await def list_queries(
    self,
    *,
    EventDataStore: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    StartTime: Union[datetime, str] = ...,
    EndTime: Union[datetime, str] = ...,
    QueryStatus: QueryStatusType = ...,  # (1)
) -> ListQueriesResponseTypeDef:  # (2)
    ...
  1. See QueryStatusType
  2. See ListQueriesResponseTypeDef
Usage example with kwargs
kwargs: ListQueriesRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
}

parent.list_queries(**kwargs)
  1. See ListQueriesRequestRequestTypeDef

list_tags

Lists the tags for the trail or event data store in the current region.

Type annotations and code completion for session.client("cloudtrail").list_tags method. boto3 documentation

Method definition
await def list_tags(
    self,
    *,
    ResourceIdList: Sequence[str],
    NextToken: str = ...,
) -> ListTagsResponseTypeDef:  # (1)
    ...
  1. See ListTagsResponseTypeDef
Usage example with kwargs
kwargs: ListTagsRequestRequestTypeDef = {  # (1)
    "ResourceIdList": ...,
}

parent.list_tags(**kwargs)
  1. See ListTagsRequestRequestTypeDef

list_trails

Lists trails that are in the current account.

Type annotations and code completion for session.client("cloudtrail").list_trails method. boto3 documentation

Method definition
await def list_trails(
    self,
    *,
    NextToken: str = ...,
) -> ListTrailsResponseTypeDef:  # (1)
    ...
  1. See ListTrailsResponseTypeDef
Usage example with kwargs
kwargs: ListTrailsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_trails(**kwargs)
  1. See ListTrailsRequestRequestTypeDef

lookup_events

Looks up management events_ or CloudTrail Insights events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail- concepts.html#cloudtrail-concepts-insigh....

Type annotations and code completion for session.client("cloudtrail").lookup_events method. boto3 documentation

Method definition
await def lookup_events(
    self,
    *,
    LookupAttributes: Sequence[LookupAttributeTypeDef] = ...,  # (1)
    StartTime: Union[datetime, str] = ...,
    EndTime: Union[datetime, str] = ...,
    EventCategory: EventCategoryType = ...,  # (2)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> LookupEventsResponseTypeDef:  # (3)
    ...
  1. See LookupAttributeTypeDef
  2. See EventCategoryType
  3. See LookupEventsResponseTypeDef
Usage example with kwargs
kwargs: LookupEventsRequestRequestTypeDef = {  # (1)
    "LookupAttributes": ...,
}

parent.lookup_events(**kwargs)
  1. See LookupEventsRequestRequestTypeDef

put_event_selectors

Configures an event selector or advanced event selectors for your trail.

Type annotations and code completion for session.client("cloudtrail").put_event_selectors method. boto3 documentation

Method definition
await def put_event_selectors(
    self,
    *,
    TrailName: str,
    EventSelectors: Sequence[EventSelectorTypeDef] = ...,  # (1)
    AdvancedEventSelectors: Sequence[AdvancedEventSelectorTypeDef] = ...,  # (2)
) -> PutEventSelectorsResponseTypeDef:  # (3)
    ...
  1. See EventSelectorTypeDef
  2. See AdvancedEventSelectorTypeDef
  3. See PutEventSelectorsResponseTypeDef
Usage example with kwargs
kwargs: PutEventSelectorsRequestRequestTypeDef = {  # (1)
    "TrailName": ...,
}

parent.put_event_selectors(**kwargs)
  1. See PutEventSelectorsRequestRequestTypeDef

put_insight_selectors

Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.

Type annotations and code completion for session.client("cloudtrail").put_insight_selectors method. boto3 documentation

Method definition
await def put_insight_selectors(
    self,
    *,
    TrailName: str,
    InsightSelectors: Sequence[InsightSelectorTypeDef],  # (1)
) -> PutInsightSelectorsResponseTypeDef:  # (2)
    ...
  1. See InsightSelectorTypeDef
  2. See PutInsightSelectorsResponseTypeDef
Usage example with kwargs
kwargs: PutInsightSelectorsRequestRequestTypeDef = {  # (1)
    "TrailName": ...,
    "InsightSelectors": ...,
}

parent.put_insight_selectors(**kwargs)
  1. See PutInsightSelectorsRequestRequestTypeDef

remove_tags

Removes the specified tags from a trail or event data store.

Type annotations and code completion for session.client("cloudtrail").remove_tags method. boto3 documentation

Method definition
await def remove_tags(
    self,
    *,
    ResourceId: str,
    TagsList: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: RemoveTagsRequestRequestTypeDef = {  # (1)
    "ResourceId": ...,
    "TagsList": ...,
}

parent.remove_tags(**kwargs)
  1. See RemoveTagsRequestRequestTypeDef

restore_event_data_store

Restores a deleted event data store specified by EventDataStore , which accepts an event data store ARN.

Type annotations and code completion for session.client("cloudtrail").restore_event_data_store method. boto3 documentation

Method definition
await def restore_event_data_store(
    self,
    *,
    EventDataStore: str,
) -> RestoreEventDataStoreResponseTypeDef:  # (1)
    ...
  1. See RestoreEventDataStoreResponseTypeDef
Usage example with kwargs
kwargs: RestoreEventDataStoreRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
}

parent.restore_event_data_store(**kwargs)
  1. See RestoreEventDataStoreRequestRequestTypeDef

start_logging

Starts the recording of Amazon Web Services API calls and log file delivery for a trail.

Type annotations and code completion for session.client("cloudtrail").start_logging method. boto3 documentation

Method definition
await def start_logging(
    self,
    *,
    Name: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: StartLoggingRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.start_logging(**kwargs)
  1. See StartLoggingRequestRequestTypeDef

start_query

Starts a CloudTrail Lake query.

Type annotations and code completion for session.client("cloudtrail").start_query method. boto3 documentation

Method definition
await def start_query(
    self,
    *,
    QueryStatement: str,
) -> StartQueryResponseTypeDef:  # (1)
    ...
  1. See StartQueryResponseTypeDef
Usage example with kwargs
kwargs: StartQueryRequestRequestTypeDef = {  # (1)
    "QueryStatement": ...,
}

parent.start_query(**kwargs)
  1. See StartQueryRequestRequestTypeDef

stop_logging

Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail.

Type annotations and code completion for session.client("cloudtrail").stop_logging method. boto3 documentation

Method definition
await def stop_logging(
    self,
    *,
    Name: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: StopLoggingRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.stop_logging(**kwargs)
  1. See StopLoggingRequestRequestTypeDef

update_event_data_store

Updates an event data store.

Type annotations and code completion for session.client("cloudtrail").update_event_data_store method. boto3 documentation

Method definition
await def update_event_data_store(
    self,
    *,
    EventDataStore: str,
    Name: str = ...,
    AdvancedEventSelectors: Sequence[AdvancedEventSelectorTypeDef] = ...,  # (1)
    MultiRegionEnabled: bool = ...,
    OrganizationEnabled: bool = ...,
    RetentionPeriod: int = ...,
    TerminationProtectionEnabled: bool = ...,
) -> UpdateEventDataStoreResponseTypeDef:  # (2)
    ...
  1. See AdvancedEventSelectorTypeDef
  2. See UpdateEventDataStoreResponseTypeDef
Usage example with kwargs
kwargs: UpdateEventDataStoreRequestRequestTypeDef = {  # (1)
    "EventDataStore": ...,
}

parent.update_event_data_store(**kwargs)
  1. See UpdateEventDataStoreRequestRequestTypeDef

update_trail

Updates trail settings that control what events you are logging, and how to handle log files.

Type annotations and code completion for session.client("cloudtrail").update_trail method. boto3 documentation

Method definition
await def update_trail(
    self,
    *,
    Name: str,
    S3BucketName: str = ...,
    S3KeyPrefix: str = ...,
    SnsTopicName: str = ...,
    IncludeGlobalServiceEvents: bool = ...,
    IsMultiRegionTrail: bool = ...,
    EnableLogFileValidation: bool = ...,
    CloudWatchLogsLogGroupArn: str = ...,
    CloudWatchLogsRoleArn: str = ...,
    KmsKeyId: str = ...,
    IsOrganizationTrail: bool = ...,
) -> UpdateTrailResponseTypeDef:  # (1)
    ...
  1. See UpdateTrailResponseTypeDef
Usage example with kwargs
kwargs: UpdateTrailRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.update_trail(**kwargs)
  1. See UpdateTrailRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("cloudtrail").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> CloudTrailClient:
    ...

__aexit__

Type annotations and code completion for session.client("cloudtrail").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator

Type annotations and code completion for session.client("cloudtrail").get_paginator method with overloads.