Paginators#
Index > CloudTrail > Paginators
Auto-generated documentation for CloudTrail type annotations stubs module mypy-boto3-cloudtrail.
ListImportFailuresPaginator#
Type annotations and code completion for boto3.client("cloudtrail").get_paginator("list_import_failures")
.
boto3 documentation
# ListImportFailuresPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListImportFailuresPaginator
def get_list_import_failures_paginator() -> ListImportFailuresPaginator:
return Session().client("cloudtrail").get_paginator("list_import_failures")
# ListImportFailuresPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListImportFailuresPaginator
session = Session()
client = Session().client("cloudtrail") # (1)
paginator: ListImportFailuresPaginator = client.get_paginator("list_import_failures") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CloudTrailClient
- paginator: ListImportFailuresPaginator
- item: ListImportFailuresResponseTypeDef
paginate#
Type annotations and code completion for ListImportFailuresPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
ImportId: str,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListImportFailuresResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListImportFailuresRequestListImportFailuresPaginateTypeDef = { # (1)
"ImportId": ...,
}
parent.paginate(**kwargs)
ListImportsPaginator#
Type annotations and code completion for boto3.client("cloudtrail").get_paginator("list_imports")
.
boto3 documentation
# ListImportsPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListImportsPaginator
def get_list_imports_paginator() -> ListImportsPaginator:
return Session().client("cloudtrail").get_paginator("list_imports")
# ListImportsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListImportsPaginator
session = Session()
client = Session().client("cloudtrail") # (1)
paginator: ListImportsPaginator = client.get_paginator("list_imports") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CloudTrailClient
- paginator: ListImportsPaginator
- item: ListImportsResponseTypeDef
paginate#
Type annotations and code completion for ListImportsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
Destination: str = ...,
ImportStatus: ImportStatusType = ..., # (1)
PaginationConfig: PaginatorConfigTypeDef = ..., # (2)
) -> _PageIterator[ListImportsResponseTypeDef]: # (3)
...
# paginate method usage example with argument unpacking
kwargs: ListImportsRequestListImportsPaginateTypeDef = { # (1)
"Destination": ...,
}
parent.paginate(**kwargs)
ListPublicKeysPaginator#
Type annotations and code completion for boto3.client("cloudtrail").get_paginator("list_public_keys")
.
boto3 documentation
# ListPublicKeysPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListPublicKeysPaginator
def get_list_public_keys_paginator() -> ListPublicKeysPaginator:
return Session().client("cloudtrail").get_paginator("list_public_keys")
# ListPublicKeysPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListPublicKeysPaginator
session = Session()
client = Session().client("cloudtrail") # (1)
paginator: ListPublicKeysPaginator = client.get_paginator("list_public_keys") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CloudTrailClient
- paginator: ListPublicKeysPaginator
- item: ListPublicKeysResponseTypeDef
paginate#
Type annotations and code completion for ListPublicKeysPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
StartTime: TimestampTypeDef = ...,
EndTime: TimestampTypeDef = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListPublicKeysResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListPublicKeysRequestListPublicKeysPaginateTypeDef = { # (1)
"StartTime": ...,
}
parent.paginate(**kwargs)
ListTagsPaginator#
Type annotations and code completion for boto3.client("cloudtrail").get_paginator("list_tags")
.
boto3 documentation
# ListTagsPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListTagsPaginator
def get_list_tags_paginator() -> ListTagsPaginator:
return Session().client("cloudtrail").get_paginator("list_tags")
# ListTagsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListTagsPaginator
session = Session()
client = Session().client("cloudtrail") # (1)
paginator: ListTagsPaginator = client.get_paginator("list_tags") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CloudTrailClient
- paginator: ListTagsPaginator
- item: ListTagsResponseTypeDef
paginate#
Type annotations and code completion for ListTagsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
ResourceIdList: Sequence[str],
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListTagsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListTagsRequestListTagsPaginateTypeDef = { # (1)
"ResourceIdList": ...,
}
parent.paginate(**kwargs)
ListTrailsPaginator#
Type annotations and code completion for boto3.client("cloudtrail").get_paginator("list_trails")
.
boto3 documentation
# ListTrailsPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListTrailsPaginator
def get_list_trails_paginator() -> ListTrailsPaginator:
return Session().client("cloudtrail").get_paginator("list_trails")
# ListTrailsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import ListTrailsPaginator
session = Session()
client = Session().client("cloudtrail") # (1)
paginator: ListTrailsPaginator = client.get_paginator("list_trails") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CloudTrailClient
- paginator: ListTrailsPaginator
- item: ListTrailsResponseTypeDef
paginate#
Type annotations and code completion for ListTrailsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListTrailsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListTrailsRequestListTrailsPaginateTypeDef = { # (1)
"PaginationConfig": ...,
}
parent.paginate(**kwargs)
LookupEventsPaginator#
Type annotations and code completion for boto3.client("cloudtrail").get_paginator("lookup_events")
.
boto3 documentation
# LookupEventsPaginator usage example
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import LookupEventsPaginator
def get_lookup_events_paginator() -> LookupEventsPaginator:
return Session().client("cloudtrail").get_paginator("lookup_events")
# LookupEventsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cloudtrail.paginator import LookupEventsPaginator
session = Session()
client = Session().client("cloudtrail") # (1)
paginator: LookupEventsPaginator = client.get_paginator("lookup_events") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CloudTrailClient
- paginator: LookupEventsPaginator
- item: LookupEventsResponseTypeDef
paginate#
Type annotations and code completion for LookupEventsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
LookupAttributes: Sequence[LookupAttributeTypeDef] = ..., # (1)
StartTime: TimestampTypeDef = ...,
EndTime: TimestampTypeDef = ...,
EventCategory: EventCategoryType = ..., # (2)
PaginationConfig: PaginatorConfigTypeDef = ..., # (3)
) -> _PageIterator[LookupEventsResponseTypeDef]: # (4)
...
- See LookupAttributeTypeDef
- See EventCategoryType
- See PaginatorConfigTypeDef
- See LookupEventsResponseTypeDef
# paginate method usage example with argument unpacking
kwargs: LookupEventsRequestLookupEventsPaginateTypeDef = { # (1)
"LookupAttributes": ...,
}
parent.paginate(**kwargs)