Skip to content

Paginators#

Index > ElasticInference > Paginators

Auto-generated documentation for ElasticInference type annotations stubs module mypy-boto3-elastic-inference.

DescribeAcceleratorsPaginator#

Type annotations and code completion for boto3.client("elastic-inference").get_paginator("describe_accelerators"). boto3 documentation

# DescribeAcceleratorsPaginator usage example

from boto3.session import Session

from mypy_boto3_elastic_inference.paginator import DescribeAcceleratorsPaginator

def get_describe_accelerators_paginator() -> DescribeAcceleratorsPaginator:
    return Session().client("elastic-inference").get_paginator("describe_accelerators")
# DescribeAcceleratorsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_elastic_inference.paginator import DescribeAcceleratorsPaginator

session = Session()

client = Session().client("elastic-inference")  # (1)
paginator: DescribeAcceleratorsPaginator = client.get_paginator("describe_accelerators")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ElasticInferenceClient
  2. paginator: DescribeAcceleratorsPaginator
  3. item: DescribeAcceleratorsResponseTypeDef

paginate#

Type annotations and code completion for DescribeAcceleratorsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    acceleratorIds: Sequence[str] = ...,
    filters: Sequence[FilterTypeDef] = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> _PageIterator[DescribeAcceleratorsResponseTypeDef]:  # (3)
    ...
  1. See FilterTypeDef
  2. See PaginatorConfigTypeDef
  3. See DescribeAcceleratorsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: DescribeAcceleratorsRequestDescribeAcceleratorsPaginateTypeDef = {  # (1)
    "acceleratorIds": ...,
}

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