Skip to content

Paginators#

Index > MediaStoreData > Paginators

Auto-generated documentation for MediaStoreData type annotations stubs module mypy-boto3-mediastore-data.

ListItemsPaginator#

Type annotations and code completion for boto3.client("mediastore-data").get_paginator("list_items"). boto3 documentation

# ListItemsPaginator usage example

from boto3.session import Session

from mypy_boto3_mediastore_data.paginator import ListItemsPaginator

def get_list_items_paginator() -> ListItemsPaginator:
    return Session().client("mediastore-data").get_paginator("list_items")
# ListItemsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_mediastore_data.paginator import ListItemsPaginator

session = Session()

client = Session().client("mediastore-data")  # (1)
paginator: ListItemsPaginator = client.get_paginator("list_items")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: MediaStoreDataClient
  2. paginator: ListItemsPaginator
  3. item: ListItemsResponseTypeDef

paginate#

Type annotations and code completion for ListItemsPaginator.paginate method.

# paginate method definition

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

kwargs: ListItemsRequestListItemsPaginateTypeDef = {  # (1)
    "Path": ...,
}

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