Skip to content

Paginators#

Index > RecycleBin > Paginators

Auto-generated documentation for RecycleBin type annotations stubs module types-aiobotocore-rbin.

ListRulesPaginator#

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

# ListRulesPaginator usage example

from aioboto3.session import Session

from types_aiobotocore_rbin.paginator import ListRulesPaginator

session = Session()

session = get_session()
async with session.client("rbin") as client:  # (1)
    paginator: ListRulesPaginator = client.get_paginator("list_rules")  # (2)
    async for item in paginator.paginate(...):
        item: ListRulesResponseTypeDef
        print(item)  # (3)
  1. client: RecycleBinClient
  2. paginator: ListRulesPaginator
  3. item: ListRulesResponseTypeDef

paginate#

Type annotations and code completion for ListRulesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    ResourceType: ResourceTypeType,  # (1)
    ResourceTags: Sequence[ResourceTagTypeDef] = ...,  # (2)
    LockState: LockStateType = ...,  # (3)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (4)
) -> AsyncIterator[ListRulesResponseTypeDef]:  # (5)
    ...
  1. See ResourceTypeType
  2. See ResourceTagTypeDef
  3. See LockStateType
  4. See PaginatorConfigTypeDef
  5. See ListRulesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListRulesRequestListRulesPaginateTypeDef = {  # (1)
    "ResourceType": ...,
}

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