Skip to content

Paginators#

Index > CloudFrontKeyValueStore > Paginators

Auto-generated documentation for CloudFrontKeyValueStore type annotations stubs module mypy-boto3-cloudfront-keyvaluestore.

ListKeysPaginator#

Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").get_paginator("list_keys"). boto3 documentation

# ListKeysPaginator usage example

from boto3.session import Session

from mypy_boto3_cloudfront_keyvaluestore.paginator import ListKeysPaginator

def get_list_keys_paginator() -> ListKeysPaginator:
    return Session().client("cloudfront-keyvaluestore").get_paginator("list_keys")
# ListKeysPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_cloudfront_keyvaluestore.paginator import ListKeysPaginator

session = Session()

client = Session().client("cloudfront-keyvaluestore")  # (1)
paginator: ListKeysPaginator = client.get_paginator("list_keys")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CloudFrontKeyValueStoreClient
  2. paginator: ListKeysPaginator
  3. item: ListKeysResponseTypeDef

paginate#

Type annotations and code completion for ListKeysPaginator.paginate method.

# paginate method definition

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

kwargs: ListKeysRequestListKeysPaginateTypeDef = {  # (1)
    "KvsARN": ...,
}

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