Skip to content

Paginators#

Index > Billing > Paginators

Auto-generated documentation for Billing type annotations stubs module mypy-boto3-billing.

ListBillingViewsPaginator#

Type annotations and code completion for boto3.client("billing").get_paginator("list_billing_views"). boto3 documentation

# ListBillingViewsPaginator usage example

from boto3.session import Session

from mypy_boto3_billing.paginator import ListBillingViewsPaginator

def get_list_billing_views_paginator() -> ListBillingViewsPaginator:
    return Session().client("billing").get_paginator("list_billing_views")
# ListBillingViewsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_billing.paginator import ListBillingViewsPaginator

session = Session()

client = Session().client("billing")  # (1)
paginator: ListBillingViewsPaginator = client.get_paginator("list_billing_views")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: BillingClient
  2. paginator: ListBillingViewsPaginator
  3. item: ListBillingViewsResponseTypeDef

paginate#

Type annotations and code completion for ListBillingViewsPaginator.paginate method.

# paginate method definition

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

kwargs: ListBillingViewsRequestListBillingViewsPaginateTypeDef = {  # (1)
    "activeTimeRange": ...,
}

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