Skip to content

Paginators

Index > RecycleBin > Paginators

Auto-generated documentation for RecycleBin type annotations stubs module mypy-boto3-rbin.

ListRulesPaginator

Type annotations and code completion for boto3.client("rbin").get_paginator("list_rules"). boto3 documentation

Usage example
from boto3.session import Session

from mypy_boto3_rbin.paginator import ListRulesPaginator

def get_list_rules_paginator() -> ListRulesPaginator:
    return Session().client("rbin").get_paginator("list_rules")
Usage example
from boto3.session import Session

from mypy_boto3_rbin.paginator import ListRulesPaginator

session = Session()

client = Session().client("rbin")  # (1)
paginator: ListRulesPaginator = client.get_paginator("list_rules")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: RecycleBinClient
  2. paginator: ListRulesPaginator
  3. item: ListRulesResponseTypeDef

paginate

Type annotations and code completion for ListRulesPaginator.paginate method.

Method definition
def paginate(
    self,
    *,
    ResourceType: ResourceTypeType,  # (1)
    ResourceTags: Sequence[ResourceTagTypeDef] = ...,  # (2)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> _PageIterator[ListRulesResponseTypeDef]:  # (4)
    ...
  1. See ResourceTypeType
  2. See ResourceTagTypeDef
  3. See PaginatorConfigTypeDef
  4. See ListRulesResponseTypeDef
Usage example with kwargs
kwargs: ListRulesRequestListRulesPaginateTypeDef = {  # (1)
    "ResourceType": ...,
}

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