Skip to content

Paginators#

Index > ParallelComputingService > Paginators

Auto-generated documentation for ParallelComputingService type annotations stubs module mypy-boto3-pcs.

ListClustersPaginator#

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

# ListClustersPaginator usage example

from boto3.session import Session

from mypy_boto3_pcs.paginator import ListClustersPaginator

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

from boto3.session import Session

from mypy_boto3_pcs.paginator import ListClustersPaginator

session = Session()

client = Session().client("pcs")  # (1)
paginator: ListClustersPaginator = client.get_paginator("list_clusters")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ParallelComputingServiceClient
  2. paginator: ListClustersPaginator
  3. item: ListClustersResponseTypeDef

paginate#

Type annotations and code completion for ListClustersPaginator.paginate method.

# paginate method definition

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

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

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

ListComputeNodeGroupsPaginator#

Type annotations and code completion for boto3.client("pcs").get_paginator("list_compute_node_groups"). boto3 documentation

# ListComputeNodeGroupsPaginator usage example

from boto3.session import Session

from mypy_boto3_pcs.paginator import ListComputeNodeGroupsPaginator

def get_list_compute_node_groups_paginator() -> ListComputeNodeGroupsPaginator:
    return Session().client("pcs").get_paginator("list_compute_node_groups")
# ListComputeNodeGroupsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_pcs.paginator import ListComputeNodeGroupsPaginator

session = Session()

client = Session().client("pcs")  # (1)
paginator: ListComputeNodeGroupsPaginator = client.get_paginator("list_compute_node_groups")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ParallelComputingServiceClient
  2. paginator: ListComputeNodeGroupsPaginator
  3. item: ListComputeNodeGroupsResponseTypeDef

paginate#

Type annotations and code completion for ListComputeNodeGroupsPaginator.paginate method.

# paginate method definition

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

kwargs: ListComputeNodeGroupsRequestListComputeNodeGroupsPaginateTypeDef = {  # (1)
    "clusterIdentifier": ...,
}

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

ListQueuesPaginator#

Type annotations and code completion for boto3.client("pcs").get_paginator("list_queues"). boto3 documentation

# ListQueuesPaginator usage example

from boto3.session import Session

from mypy_boto3_pcs.paginator import ListQueuesPaginator

def get_list_queues_paginator() -> ListQueuesPaginator:
    return Session().client("pcs").get_paginator("list_queues")
# ListQueuesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_pcs.paginator import ListQueuesPaginator

session = Session()

client = Session().client("pcs")  # (1)
paginator: ListQueuesPaginator = client.get_paginator("list_queues")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ParallelComputingServiceClient
  2. paginator: ListQueuesPaginator
  3. item: ListQueuesResponseTypeDef

paginate#

Type annotations and code completion for ListQueuesPaginator.paginate method.

# paginate method definition

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

kwargs: ListQueuesRequestListQueuesPaginateTypeDef = {  # (1)
    "clusterIdentifier": ...,
}

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