Skip to content

Paginators#

Index > ControlTower > Paginators

Auto-generated documentation for ControlTower type annotations stubs module mypy-boto3-controltower.

ListEnabledControlsPaginator#

Type annotations and code completion for boto3.client("controltower").get_paginator("list_enabled_controls"). boto3 documentation

# ListEnabledControlsPaginator usage example

from boto3.session import Session

from mypy_boto3_controltower.paginator import ListEnabledControlsPaginator

def get_list_enabled_controls_paginator() -> ListEnabledControlsPaginator:
    return Session().client("controltower").get_paginator("list_enabled_controls")
# ListEnabledControlsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_controltower.paginator import ListEnabledControlsPaginator

session = Session()

client = Session().client("controltower")  # (1)
paginator: ListEnabledControlsPaginator = client.get_paginator("list_enabled_controls")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ControlTowerClient
  2. paginator: ListEnabledControlsPaginator
  3. item: ListEnabledControlsOutputTypeDef

paginate#

Type annotations and code completion for ListEnabledControlsPaginator.paginate method.

# paginate method definition

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

kwargs: ListEnabledControlsInputListEnabledControlsPaginateTypeDef = {  # (1)
    "targetIdentifier": ...,
}

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

ListLandingZonesPaginator#

Type annotations and code completion for boto3.client("controltower").get_paginator("list_landing_zones"). boto3 documentation

# ListLandingZonesPaginator usage example

from boto3.session import Session

from mypy_boto3_controltower.paginator import ListLandingZonesPaginator

def get_list_landing_zones_paginator() -> ListLandingZonesPaginator:
    return Session().client("controltower").get_paginator("list_landing_zones")
# ListLandingZonesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_controltower.paginator import ListLandingZonesPaginator

session = Session()

client = Session().client("controltower")  # (1)
paginator: ListLandingZonesPaginator = client.get_paginator("list_landing_zones")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ControlTowerClient
  2. paginator: ListLandingZonesPaginator
  3. item: ListLandingZonesOutputTypeDef

paginate#

Type annotations and code completion for ListLandingZonesPaginator.paginate method.

# paginate method definition

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

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

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