Skip to content

Paginators#

Index > PrometheusService > Paginators

Auto-generated documentation for PrometheusService type annotations stubs module mypy-boto3-amp.

ListRuleGroupsNamespacesPaginator#

Type annotations and code completion for boto3.client("amp").get_paginator("list_rule_groups_namespaces"). boto3 documentation

# ListRuleGroupsNamespacesPaginator usage example

from boto3.session import Session

from mypy_boto3_amp.paginator import ListRuleGroupsNamespacesPaginator

def get_list_rule_groups_namespaces_paginator() -> ListRuleGroupsNamespacesPaginator:
    return Session().client("amp").get_paginator("list_rule_groups_namespaces")
# ListRuleGroupsNamespacesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_amp.paginator import ListRuleGroupsNamespacesPaginator

session = Session()

client = Session().client("amp")  # (1)
paginator: ListRuleGroupsNamespacesPaginator = client.get_paginator("list_rule_groups_namespaces")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: PrometheusServiceClient
  2. paginator: ListRuleGroupsNamespacesPaginator
  3. item: ListRuleGroupsNamespacesResponseTypeDef

paginate#

Type annotations and code completion for ListRuleGroupsNamespacesPaginator.paginate method.

# paginate method definition

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

kwargs: ListRuleGroupsNamespacesRequestListRuleGroupsNamespacesPaginateTypeDef = {  # (1)
    "workspaceId": ...,
}

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

ListScrapersPaginator#

Type annotations and code completion for boto3.client("amp").get_paginator("list_scrapers"). boto3 documentation

# ListScrapersPaginator usage example

from boto3.session import Session

from mypy_boto3_amp.paginator import ListScrapersPaginator

def get_list_scrapers_paginator() -> ListScrapersPaginator:
    return Session().client("amp").get_paginator("list_scrapers")
# ListScrapersPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_amp.paginator import ListScrapersPaginator

session = Session()

client = Session().client("amp")  # (1)
paginator: ListScrapersPaginator = client.get_paginator("list_scrapers")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: PrometheusServiceClient
  2. paginator: ListScrapersPaginator
  3. item: ListScrapersResponsePaginatorTypeDef

paginate#

Type annotations and code completion for ListScrapersPaginator.paginate method.

# paginate method definition

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

kwargs: ListScrapersRequestListScrapersPaginateTypeDef = {  # (1)
    "filters": ...,
}

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

ListWorkspacesPaginator#

Type annotations and code completion for boto3.client("amp").get_paginator("list_workspaces"). boto3 documentation

# ListWorkspacesPaginator usage example

from boto3.session import Session

from mypy_boto3_amp.paginator import ListWorkspacesPaginator

def get_list_workspaces_paginator() -> ListWorkspacesPaginator:
    return Session().client("amp").get_paginator("list_workspaces")
# ListWorkspacesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_amp.paginator import ListWorkspacesPaginator

session = Session()

client = Session().client("amp")  # (1)
paginator: ListWorkspacesPaginator = client.get_paginator("list_workspaces")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: PrometheusServiceClient
  2. paginator: ListWorkspacesPaginator
  3. item: ListWorkspacesResponseTypeDef

paginate#

Type annotations and code completion for ListWorkspacesPaginator.paginate method.

# paginate method definition

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

kwargs: ListWorkspacesRequestListWorkspacesPaginateTypeDef = {  # (1)
    "alias": ...,
}

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