Skip to content

Paginators#

Index > CodeGuruProfiler > Paginators

Auto-generated documentation for CodeGuruProfiler type annotations stubs module types-aiobotocore-codeguruprofiler.

ListProfileTimesPaginator#

Type annotations and code completion for session.create_client("codeguruprofiler").get_paginator("list_profile_times"). boto3 documentation

# ListProfileTimesPaginator usage example

from aiobotocore.session import get_session

from types_aiobotocore_codeguruprofiler.paginator import ListProfileTimesPaginator

session = get_session()
async with session.create_client("codeguruprofiler") as client:  # (1)
    paginator: ListProfileTimesPaginator = client.get_paginator("list_profile_times")  # (2)
    async for item in paginator.paginate(...):
        item: ListProfileTimesResponseTypeDef
        print(item)  # (3)
  1. client: CodeGuruProfilerClient
  2. paginator: ListProfileTimesPaginator
  3. item: ListProfileTimesResponseTypeDef

paginate#

Type annotations and code completion for ListProfileTimesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    endTime: Union[datetime, str],
    period: AggregationPeriodType,  # (1)
    profilingGroupName: str,
    startTime: Union[datetime, str],
    orderBy: OrderByType = ...,  # (2)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> AsyncIterator[ListProfileTimesResponseTypeDef]:  # (4)
    ...
  1. See AggregationPeriodType
  2. See OrderByType
  3. See PaginatorConfigTypeDef
  4. See ListProfileTimesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListProfileTimesRequestListProfileTimesPaginateTypeDef = {  # (1)
    "endTime": ...,
    "period": ...,
    "profilingGroupName": ...,
    "startTime": ...,
}

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