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
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")
Usage example
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.
Method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListIdentityPoolsResponseTypeDef]: # (2)
...