Paginators#
Index > CognitoIdentity > Paginators
Auto-generated documentation for CognitoIdentity type annotations stubs module mypy-boto3-cognito-identity.
ListIdentityPoolsPaginator#
Type annotations and code completion for boto3.client("cognito-identity").get_paginator("list_identity_pools")
.
boto3 documentation
# ListIdentityPoolsPaginator usage example
from boto3.session import Session
from mypy_boto3_cognito_identity.paginator import ListIdentityPoolsPaginator
def get_list_identity_pools_paginator() -> ListIdentityPoolsPaginator:
return Session().client("cognito-identity").get_paginator("list_identity_pools")
# ListIdentityPoolsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_cognito_identity.paginator import ListIdentityPoolsPaginator
session = Session()
client = Session().client("cognito-identity") # (1)
paginator: ListIdentityPoolsPaginator = client.get_paginator("list_identity_pools") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: CognitoIdentityClient
- paginator: ListIdentityPoolsPaginator
- item: ListIdentityPoolsResponseTypeDef
paginate#
Type annotations and code completion for ListIdentityPoolsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> PageIterator[ListIdentityPoolsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListIdentityPoolsInputPaginateTypeDef = { # (1)
"PaginationConfig": ...,
}
parent.paginate(**kwargs)