Skip to content

Paginators#

Index > OpsWorks > Paginators

Auto-generated documentation for OpsWorks type annotations stubs module mypy-boto3-opsworks.

DescribeEcsClustersPaginator#

Type annotations and code completion for boto3.client("opsworks").get_paginator("describe_ecs_clusters"). boto3 documentation

# DescribeEcsClustersPaginator usage example

from boto3.session import Session

from mypy_boto3_opsworks.paginator import DescribeEcsClustersPaginator

def get_describe_ecs_clusters_paginator() -> DescribeEcsClustersPaginator:
    return Session().client("opsworks").get_paginator("describe_ecs_clusters")
# DescribeEcsClustersPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_opsworks.paginator import DescribeEcsClustersPaginator

session = Session()

client = Session().client("opsworks")  # (1)
paginator: DescribeEcsClustersPaginator = client.get_paginator("describe_ecs_clusters")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OpsWorksClient
  2. paginator: DescribeEcsClustersPaginator
  3. item: DescribeEcsClustersResultTypeDef

paginate#

Type annotations and code completion for DescribeEcsClustersPaginator.paginate method.

# paginate method definition

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

kwargs: DescribeEcsClustersRequestDescribeEcsClustersPaginateTypeDef = {  # (1)
    "EcsClusterArns": ...,
}

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