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)
- client: ElasticInferenceClient
- paginator: DescribeAcceleratorsPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: DescribeAcceleratorsRequestDescribeAcceleratorsPaginateTypeDef = { # (1)
"acceleratorIds": ...,
}
parent.paginate(**kwargs)