SecretsManagerClient.batch_get_secret_value
rboto-secrets-manager==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves the contents of the encrypted fields SecretString or SecretBinary for up to 20 secrets. To retrieve a single secret, call GetSecretValue . To choose which secrets to retrieve, you can specify a list of secrets by name or ARN, or you can use filters. If Secrets Manager encounters errors such as AccessDeniedException while attempting to retrieve any of the secrets, you can see the...
Install and imports
from rboto import SecretsManagerClient
from collections.abc import Sequence
from rboto_secrets_manager.types import (
BatchGetSecretValueOutput,
Filter,
)
Signature
async def batch_get_secret_value(
*,
secret_id_list: Sequence[str] | None = None,
filters: Sequence[Filter] | None = None,
max_results: int | None = None,
next_token: str | None = None,
) -> BatchGetSecretValueOutput: ...
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) |
|---|---|---|
secret_id_list |
No | The ARN or names of the secrets to retrieve. You must include Filters or SecretIdList , but not both. |
filters |
No | The filters to choose which secrets to retrieve. You must include Filters or SecretIdList , but not both. |
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 BatchGetSecretValue again with the value from NextToken . To use this parameter, you must also use the Filters parameter. |
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 BatchGetSecretValue again with this value. |
Output
BatchGetSecretValueOutput.
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_values |
list[SecretValueEntryOutput] | None |
Always present | SecretValueEntryOutput |
next_token |
str | None |
Always present | — |
errors |
list[ApiErrorType] | None |
Always present | ApiErrorType |
| 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
BatchGetSecretValueOutput, Filter
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.batch_get_secret_value(...) accepts the same arguments and returns AsyncIterator[BatchGetSecretValueOutput]. 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:
DecryptionFailureError, InternalServiceError, InvalidNextTokenError, InvalidParameterError, InvalidRequestError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.