SecretsManagerClient.list_secrets
rboto-secrets-manager==0.4.0 · Service index · Types
Model summary (excerpt): Lists the secrets that are stored by Secrets Manager in the Amazon Web Services account, not including secrets that are marked for deletion. To see secrets marked for deletion, use the Secrets Manager console. All Secrets Manager operations are eventually consistent. ListSecrets might not reflect changes from the last five minutes. You can get more recent information for a specific secret by...
Install and imports
from rboto import SecretsManagerClient
from collections.abc import Sequence
from rboto_secrets_manager.types import (
Filter,
ListSecretsOutput,
SortByType,
SortOrderType,
)
Signature
async def list_secrets(
*,
include_planned_deletion: bool | None = None,
max_results: int | None = None,
next_token: str | None = None,
filters: Sequence[Filter] | None = None,
sort_order: SortOrderType | None = None,
sort_by: SortByType | None = None,
) -> ListSecretsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
include_planned_deletion |
No | Specifies whether to include secrets scheduled for deletion. By default, secrets scheduled for deletion aren't included. |
max_results |
No | The number of results to include in the response. If there are more results available, in the response, Secrets Manager includes NextToken . To get the next results, call ListSecrets again with the value from NextToken . |
next_token |
No | A token that indicates where the output should continue from, if a previous call did not show all results. To get the next results, call ListSecrets again with this value. |
filters |
No | The filters to apply to the list of secrets. |
sort_order |
No | Secrets are listed by CreatedDate . |
sort_by |
No | If not specified, secrets are listed by CreatedDate . |
Output
ListSecretsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
secret_list |
list[SecretListEntryOutput] | None |
Always present | SecretListEntryOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Filter, ListSecretsOutput, SortByType, SortOrderType
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_secrets(...) accepts the same arguments and returns AsyncIterator[ListSecretsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_secrets_manager.exceptions:
InternalServiceError, InvalidNextTokenError, InvalidParameterError, InvalidRequestError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.