Skip to content

Paginators#

Index > CloudWatchNetworkMonitor > Paginators

Auto-generated documentation for CloudWatchNetworkMonitor type annotations stubs module mypy-boto3-networkmonitor.

ListMonitorsPaginator#

Type annotations and code completion for boto3.client("networkmonitor").get_paginator("list_monitors"). boto3 documentation

# ListMonitorsPaginator usage example

from boto3.session import Session

from mypy_boto3_networkmonitor.paginator import ListMonitorsPaginator

def get_list_monitors_paginator() -> ListMonitorsPaginator:
    return Session().client("networkmonitor").get_paginator("list_monitors")
# ListMonitorsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_networkmonitor.paginator import ListMonitorsPaginator

session = Session()

client = Session().client("networkmonitor")  # (1)
paginator: ListMonitorsPaginator = client.get_paginator("list_monitors")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CloudWatchNetworkMonitorClient
  2. paginator: ListMonitorsPaginator
  3. item: ListMonitorsOutputTypeDef

paginate#

Type annotations and code completion for ListMonitorsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    state: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[ListMonitorsOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListMonitorsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: ListMonitorsInputListMonitorsPaginateTypeDef = {  # (1)
    "state": ...,
}

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