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
# ListSecretsPaginator 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")
# ListSecretsPaginator usage example with type annotations
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)
- client: SecretsManagerClient
- paginator: ListSecretsPaginator
- item: ListSecretsResponseTypeDef
paginate#
Type annotations and code completion for ListSecretsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
IncludePlannedDeletion: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
SortOrder: SortOrderTypeType = ..., # (2)
PaginationConfig: PaginatorConfigTypeDef = ..., # (3)
) -> _PageIterator[ListSecretsResponseTypeDef]: # (4)
...
# paginate method usage example with argument unpacking
kwargs: ListSecretsRequestListSecretsPaginateTypeDef = { # (1)
"IncludePlannedDeletion": ...,
}
parent.paginate(**kwargs)