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)
- client: MWAAClient
- paginator: ListEnvironmentsPaginator
- item: ListEnvironmentsOutputTypeDef
paginate#
Type annotations and code completion for ListEnvironmentsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> PageIterator[ListEnvironmentsOutputTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListEnvironmentsInputPaginateTypeDef = { # (1)
"PaginationConfig": ...,
}
parent.paginate(**kwargs)