Skip to content

Paginators#

Index > AuroraDSQL > Paginators

Auto-generated documentation for AuroraDSQL type annotations stubs module types-boto3-dsql.

ListClustersPaginator#

Type annotations and code completion for boto3.client("dsql").get_paginator("list_clusters"). boto3 documentation

# ListClustersPaginator usage example

from boto3.session import Session

from types_boto3_dsql.paginator import ListClustersPaginator

def get_list_clusters_paginator() -> ListClustersPaginator:
    return Session().client("dsql").get_paginator("list_clusters")
# ListClustersPaginator usage example with type annotations

from boto3.session import Session

from types_boto3_dsql.paginator import ListClustersPaginator

session = Session()

client = Session().client("dsql")  # (1)
paginator: ListClustersPaginator = client.get_paginator("list_clusters")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: AuroraDSQLClient
  2. paginator: ListClustersPaginator
  3. item: ListClustersOutputTypeDef

paginate#

Type annotations and code completion for ListClustersPaginator.paginate method.

# paginate method definition

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

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

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