Paginators#
Index > PrometheusService > Paginators
Auto-generated documentation for PrometheusService type annotations stubs module types-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 types_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 types_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)
- client: PrometheusServiceClient
- paginator: ListRuleGroupsNamespacesPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListRuleGroupsNamespacesRequestPaginateTypeDef = { # (1)
"workspaceId": ...,
}
parent.paginate(**kwargs)
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 types_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 types_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)
- client: PrometheusServiceClient
- paginator: ListScrapersPaginator
- item: ListScrapersResponseTypeDef
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[ListScrapersResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListScrapersRequestPaginateTypeDef = { # (1)
"filters": ...,
}
parent.paginate(**kwargs)
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 types_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 types_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)
- client: PrometheusServiceClient
- paginator: ListWorkspacesPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListWorkspacesRequestPaginateTypeDef = { # (1)
"alias": ...,
}
parent.paginate(**kwargs)