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

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")
Usage example
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.

Method definition
def paginate(
    self,
    *,
    workspaceId: str,
    name: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[ListRuleGroupsNamespacesResponseTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListRuleGroupsNamespacesResponseTypeDef
Usage example with kwargs
kwargs: ListRuleGroupsNamespacesRequestListRuleGroupsNamespacesPaginateTypeDef = {  # (1)
    "workspaceId": ...,
}

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

ListWorkspacesPaginator

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

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")
Usage example
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.

Method definition
def paginate(
    self,
    *,
    alias: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[ListWorkspacesResponseTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListWorkspacesResponseTypeDef
Usage example with kwargs
kwargs: ListWorkspacesRequestListWorkspacesPaginateTypeDef = {  # (1)
    "alias": ...,
}

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