Skip to content

Paginators#

Index > finspace > Paginators

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

ListKxEnvironmentsPaginator#

Type annotations and code completion for boto3.client("finspace").get_paginator("list_kx_environments"). boto3 documentation

# ListKxEnvironmentsPaginator usage example

from boto3.session import Session

from mypy_boto3_finspace.paginator import ListKxEnvironmentsPaginator

def get_list_kx_environments_paginator() -> ListKxEnvironmentsPaginator:
    return Session().client("finspace").get_paginator("list_kx_environments")
# ListKxEnvironmentsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_finspace.paginator import ListKxEnvironmentsPaginator

session = Session()

client = Session().client("finspace")  # (1)
paginator: ListKxEnvironmentsPaginator = client.get_paginator("list_kx_environments")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: finspaceClient
  2. paginator: ListKxEnvironmentsPaginator
  3. item: ListKxEnvironmentsResponseTypeDef

paginate#

Type annotations and code completion for ListKxEnvironmentsPaginator.paginate method.

# paginate method definition

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

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

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