Skip to content

Paginators#

Index > MediaStore > Paginators

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

ListContainersPaginator#

Type annotations and code completion for boto3.client("mediastore").get_paginator("list_containers"). boto3 documentation

# ListContainersPaginator usage example

from boto3.session import Session

from mypy_boto3_mediastore.paginator import ListContainersPaginator

def get_list_containers_paginator() -> ListContainersPaginator:
    return Session().client("mediastore").get_paginator("list_containers")
# ListContainersPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_mediastore.paginator import ListContainersPaginator

session = Session()

client = Session().client("mediastore")  # (1)
paginator: ListContainersPaginator = client.get_paginator("list_containers")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: MediaStoreClient
  2. paginator: ListContainersPaginator
  3. item: ListContainersOutputTypeDef

paginate#

Type annotations and code completion for ListContainersPaginator.paginate method.

# paginate method definition

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

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

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