Skip to content

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)
  1. client: CloudTrailClient
  2. paginator: ListImportFailuresPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListImportFailuresResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListImportFailuresRequestPaginateTypeDef = {  # (1)
    "ImportId": ...,
}

parent.paginate(**kwargs)
  1. See ListImportFailuresRequestPaginateTypeDef

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)
  1. client: CloudTrailClient
  2. paginator: ListImportsPaginator
  3. 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)
    ...
  1. See ImportStatusType
  2. See PaginatorConfigTypeDef
  3. See ListImportsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListImportsRequestPaginateTypeDef = {  # (1)
    "Destination": ...,
}

parent.paginate(**kwargs)
  1. See ListImportsRequestPaginateTypeDef

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)
  1. client: CloudTrailClient
  2. paginator: ListPublicKeysPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListPublicKeysResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListPublicKeysRequestPaginateTypeDef = {  # (1)
    "StartTime": ...,
}

parent.paginate(**kwargs)
  1. See ListPublicKeysRequestPaginateTypeDef

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)
  1. client: CloudTrailClient
  2. paginator: ListTagsPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListTagsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListTagsRequestPaginateTypeDef = {  # (1)
    "ResourceIdList": ...,
}

parent.paginate(**kwargs)
  1. See ListTagsRequestPaginateTypeDef

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)
  1. client: CloudTrailClient
  2. paginator: ListTrailsPaginator
  3. item: ListTrailsResponseTypeDef

paginate#

Type annotations and code completion for ListTrailsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> PageIterator[ListTrailsResponseTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListTrailsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListTrailsRequestPaginateTypeDef = {  # (1)
    "PaginationConfig": ...,
}

parent.paginate(**kwargs)
  1. See ListTrailsRequestPaginateTypeDef

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)
  1. client: CloudTrailClient
  2. paginator: LookupEventsPaginator
  3. 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)
    ...
  1. See LookupAttributeTypeDef
  2. See EventCategoryType
  3. See PaginatorConfigTypeDef
  4. See LookupEventsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: LookupEventsRequestPaginateTypeDef = {  # (1)
    "LookupAttributes": ...,
}

parent.paginate(**kwargs)
  1. See LookupEventsRequestPaginateTypeDef