Skip to content

Paginators#

Index > ManagedBlockchain > Paginators

Auto-generated documentation for ManagedBlockchain type annotations stubs module mypy-boto3-managedblockchain.

ListAccessorsPaginator#

Type annotations and code completion for boto3.client("managedblockchain").get_paginator("list_accessors"). boto3 documentation

# ListAccessorsPaginator usage example

from boto3.session import Session

from mypy_boto3_managedblockchain.paginator import ListAccessorsPaginator

def get_list_accessors_paginator() -> ListAccessorsPaginator:
    return Session().client("managedblockchain").get_paginator("list_accessors")
# ListAccessorsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_managedblockchain.paginator import ListAccessorsPaginator

session = Session()

client = Session().client("managedblockchain")  # (1)
paginator: ListAccessorsPaginator = client.get_paginator("list_accessors")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: ManagedBlockchainClient
  2. paginator: ListAccessorsPaginator
  3. item: ListAccessorsOutputTypeDef

paginate#

Type annotations and code completion for ListAccessorsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    NetworkType: AccessorNetworkTypeType = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> _PageIterator[ListAccessorsOutputTypeDef]:  # (3)
    ...
  1. See AccessorNetworkTypeType
  2. See PaginatorConfigTypeDef
  3. See ListAccessorsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: ListAccessorsInputListAccessorsPaginateTypeDef = {  # (1)
    "NetworkType": ...,
}

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