Skip to content

Paginators#

Index > AgentRegistry > Paginators

Auto-generated documentation for AgentRegistry type annotations stubs module mypy-boto3-agent-registry.

ListDiscoverableRegistryRecordsPaginator#

Type annotations and code completion for boto3.client("agent-registry").get_paginator("list_discoverable_registry_records"). boto3 documentation

# ListDiscoverableRegistryRecordsPaginator usage example

from boto3.session import Session

from mypy_boto3_agent_registry.paginator import ListDiscoverableRegistryRecordsPaginator

def get_list_discoverable_registry_records_paginator() -> ListDiscoverableRegistryRecordsPaginator:
    return Session().client("agent-registry").get_paginator("list_discoverable_registry_records")
# ListDiscoverableRegistryRecordsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_agent_registry.paginator import ListDiscoverableRegistryRecordsPaginator

session = Session()

client = Session().client("agent-registry")  # (1)
paginator: ListDiscoverableRegistryRecordsPaginator = client.get_paginator("list_discoverable_registry_records")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: AgentRegistryClient
  2. paginator: ListDiscoverableRegistryRecordsPaginator
  3. item: PageIterator[ListDiscoverableRegistryRecordsResponseTypeDef]

paginate#

Type annotations and code completion for ListDiscoverableRegistryRecordsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    registryId: str,
    filters: Sequence[RegistryRecordFilterTypeDef] = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> botocore.paginate.PageIterator[ListDiscoverableRegistryRecordsResponseTypeDef]:  # (3)
    ...
  1. See Sequence[RegistryRecordFilterTypeDef]
  2. See PaginatorConfigTypeDef
  3. See PageIterator[ListDiscoverableRegistryRecordsResponseTypeDef]
# paginate method usage example with argument unpacking

kwargs: ListDiscoverableRegistryRecordsRequestPaginateTypeDef = {  # (1)
    "registryId": ...,
}

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