Skip to content

Paginators#

Index > ImportExport > Paginators

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

ListJobsPaginator#

Type annotations and code completion for boto3.client("importexport").get_paginator("list_jobs"). boto3 documentation

# ListJobsPaginator usage example

from boto3.session import Session

from mypy_boto3_importexport.paginator import ListJobsPaginator

def get_list_jobs_paginator() -> ListJobsPaginator:
    return Session().client("importexport").get_paginator("list_jobs")
# ListJobsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_importexport.paginator import ListJobsPaginator

session = Session()

client = Session().client("importexport")  # (1)
paginator: ListJobsPaginator = client.get_paginator("list_jobs")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ImportExportClient
  2. paginator: ListJobsPaginator
  3. item: ListJobsOutputTypeDef

paginate#

Type annotations and code completion for ListJobsPaginator.paginate method.

# paginate method definition

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

kwargs: ListJobsInputPaginateTypeDef = {  # (1)
    "APIVersion": ...,
}

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