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)
    LockState: LockStateType = ...,  # (3)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (4)
) -> _PageIterator[ListRulesResponseTypeDef]:  # (5)
    ...
  1. See ResourceTypeType
  2. See ResourceTagTypeDef
  3. See LockStateType
  4. See PaginatorConfigTypeDef
  5. See ListRulesResponseTypeDef
Usage example with kwargs
kwargs: ListRulesRequestListRulesPaginateTypeDef = {  # (1)
    "ResourceType": ...,
}

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