Skip to content

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)
  1. client: CognitoIdentityClient
  2. paginator: ListIdentityPoolsPaginator
  3. item: ListIdentityPoolsResponseTypeDef

paginate#

Type annotations and code completion for ListIdentityPoolsPaginator.paginate method.

# paginate method definition

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

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

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