Skip to content

Paginators#

Index > MWAA > Paginators

Auto-generated documentation for MWAA type annotations stubs module mypy-boto3-mwaa.

ListEnvironmentsPaginator#

Type annotations and code completion for boto3.client("mwaa").get_paginator("list_environments"). boto3 documentation

# ListEnvironmentsPaginator usage example

from boto3.session import Session

from mypy_boto3_mwaa.paginator import ListEnvironmentsPaginator

def get_list_environments_paginator() -> ListEnvironmentsPaginator:
    return Session().client("mwaa").get_paginator("list_environments")
# ListEnvironmentsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_mwaa.paginator import ListEnvironmentsPaginator

session = Session()

client = Session().client("mwaa")  # (1)
paginator: ListEnvironmentsPaginator = client.get_paginator("list_environments")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: MWAAClient
  2. paginator: ListEnvironmentsPaginator
  3. item: ListEnvironmentsOutputTypeDef

paginate#

Type annotations and code completion for ListEnvironmentsPaginator.paginate method.

# paginate method definition

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

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

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