Skip to content

Paginators#

Index > SimpleDB > Paginators

Auto-generated documentation for SimpleDB type annotations stubs module mypy-boto3-sdb.

ListDomainsPaginator#

Type annotations and code completion for boto3.client("sdb").get_paginator("list_domains"). boto3 documentation

# ListDomainsPaginator usage example

from boto3.session import Session

from mypy_boto3_sdb.paginator import ListDomainsPaginator

def get_list_domains_paginator() -> ListDomainsPaginator:
    return Session().client("sdb").get_paginator("list_domains")
# ListDomainsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sdb.paginator import ListDomainsPaginator

session = Session()

client = Session().client("sdb")  # (1)
paginator: ListDomainsPaginator = client.get_paginator("list_domains")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SimpleDBClient
  2. paginator: ListDomainsPaginator
  3. item: ListDomainsResultTypeDef

paginate#

Type annotations and code completion for ListDomainsPaginator.paginate method.

# paginate method definition

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

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

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

SelectPaginator#

Type annotations and code completion for boto3.client("sdb").get_paginator("select"). boto3 documentation

# SelectPaginator usage example

from boto3.session import Session

from mypy_boto3_sdb.paginator import SelectPaginator

def get_select_paginator() -> SelectPaginator:
    return Session().client("sdb").get_paginator("select")
# SelectPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sdb.paginator import SelectPaginator

session = Session()

client = Session().client("sdb")  # (1)
paginator: SelectPaginator = client.get_paginator("select")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SimpleDBClient
  2. paginator: SelectPaginator
  3. item: SelectResultTypeDef

paginate#

Type annotations and code completion for SelectPaginator.paginate method.

# paginate method definition

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

kwargs: SelectRequestSelectPaginateTypeDef = {  # (1)
    "SelectExpression": ...,
}

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