Skip to content

Paginators#

Index > Keyspaces > Paginators

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

ListKeyspacesPaginator#

Type annotations and code completion for boto3.client("keyspaces").get_paginator("list_keyspaces"). boto3 documentation

# ListKeyspacesPaginator usage example

from boto3.session import Session

from mypy_boto3_keyspaces.paginator import ListKeyspacesPaginator

def get_list_keyspaces_paginator() -> ListKeyspacesPaginator:
    return Session().client("keyspaces").get_paginator("list_keyspaces")
# ListKeyspacesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_keyspaces.paginator import ListKeyspacesPaginator

session = Session()

client = Session().client("keyspaces")  # (1)
paginator: ListKeyspacesPaginator = client.get_paginator("list_keyspaces")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KeyspacesClient
  2. paginator: ListKeyspacesPaginator
  3. item: ListKeyspacesResponseTypeDef

paginate#

Type annotations and code completion for ListKeyspacesPaginator.paginate method.

# paginate method definition

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

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

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

ListTablesPaginator#

Type annotations and code completion for boto3.client("keyspaces").get_paginator("list_tables"). boto3 documentation

# ListTablesPaginator usage example

from boto3.session import Session

from mypy_boto3_keyspaces.paginator import ListTablesPaginator

def get_list_tables_paginator() -> ListTablesPaginator:
    return Session().client("keyspaces").get_paginator("list_tables")
# ListTablesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_keyspaces.paginator import ListTablesPaginator

session = Session()

client = Session().client("keyspaces")  # (1)
paginator: ListTablesPaginator = client.get_paginator("list_tables")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KeyspacesClient
  2. paginator: ListTablesPaginator
  3. item: ListTablesResponseTypeDef

paginate#

Type annotations and code completion for ListTablesPaginator.paginate method.

# paginate method definition

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

kwargs: ListTablesRequestListTablesPaginateTypeDef = {  # (1)
    "keyspaceName": ...,
}

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

ListTagsForResourcePaginator#

Type annotations and code completion for boto3.client("keyspaces").get_paginator("list_tags_for_resource"). boto3 documentation

# ListTagsForResourcePaginator usage example

from boto3.session import Session

from mypy_boto3_keyspaces.paginator import ListTagsForResourcePaginator

def get_list_tags_for_resource_paginator() -> ListTagsForResourcePaginator:
    return Session().client("keyspaces").get_paginator("list_tags_for_resource")
# ListTagsForResourcePaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_keyspaces.paginator import ListTagsForResourcePaginator

session = Session()

client = Session().client("keyspaces")  # (1)
paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: KeyspacesClient
  2. paginator: ListTagsForResourcePaginator
  3. item: ListTagsForResourceResponseTypeDef

paginate#

Type annotations and code completion for ListTagsForResourcePaginator.paginate method.

# paginate method definition

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

kwargs: ListTagsForResourceRequestListTagsForResourcePaginateTypeDef = {  # (1)
    "resourceArn": ...,
}

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