Paginate
async_boto.utils.paginate
T
module-attribute
T = TypeVar('T', bound=BaseModel)
paginate
async
paginate(client, method, request, pagination_response_key='LastEvaluatedKey', pagination_query_key=None)
Generic paginator function for DynamoDB client methods.
| PARAMETER | DESCRIPTION |
|---|---|
client
|
The DynamoDB client instance.
TYPE:
|
method
|
The name of the client method to call.
TYPE:
|
request
|
The request model instance.
TYPE:
|
pagination_response_key
|
The key in the response that indicates the pagination token, by default "LastEvaluatedKey".
TYPE:
|
pagination_query_key
|
The key in the request that indicates the pagination token, by default None. If not given, it will be the same as pagination_response_key.
TYPE:
|
| YIELDS | DESCRIPTION |
|---|---|
T
|
The response model instance for each page. |
Source code in async_boto/utils/paginate.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |