Skip to content

Paginators

Index > SecretsManager > Paginators

Auto-generated documentation for SecretsManager type annotations stubs module mypy-boto3-secretsmanager.

ListSecretsPaginator

Type annotations and code completion for boto3.client("secretsmanager").get_paginator("list_secrets"). boto3 documentation

Usage example
from boto3.session import Session

from mypy_boto3_secretsmanager.paginator import ListSecretsPaginator

def get_list_secrets_paginator() -> ListSecretsPaginator:
    return Session().client("secretsmanager").get_paginator("list_secrets")
Usage example
from boto3.session import Session

from mypy_boto3_secretsmanager.paginator import ListSecretsPaginator

session = Session()

client = Session().client("secretsmanager")  # (1)
paginator: ListSecretsPaginator = client.get_paginator("list_secrets")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SecretsManagerClient
  2. paginator: ListSecretsPaginator
  3. item: ListSecretsResponseTypeDef

paginate

Type annotations and code completion for ListSecretsPaginator.paginate method.

Method definition
def paginate(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    SortOrder: SortOrderTypeType = ...,  # (2)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> _PageIterator[ListSecretsResponseTypeDef]:  # (4)
    ...
  1. See FilterTypeDef
  2. See SortOrderTypeType
  3. See PaginatorConfigTypeDef
  4. See ListSecretsResponseTypeDef
Usage example with kwargs
kwargs: ListSecretsRequestListSecretsPaginateTypeDef = {  # (1)
    "Filters": ...,
}

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