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)
- client: OpsWorksClient
- paginator: DescribeEcsClustersPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: DescribeEcsClustersRequestPaginateTypeDef = { # (1)
"EcsClusterArns": ...,
}
parent.paginate(**kwargs)