Smaws_Client_SecretsManager.BatchGetSecretValueRetrieves 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 errors in Errors in the response.
Secrets Manager generates CloudTrail GetSecretValue log entries for each secret you request when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.
Required permissions: secretsmanager:BatchGetSecretValue, and you must have secretsmanager:GetSecretValue for each secret. If you use filters, you must also have secretsmanager:ListSecrets. If the secrets are encrypted using customer-managed keys instead of the Amazon Web Services managed key aws/secretsmanager, then you also need kms:Decrypt permissions for the keys. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `DecryptionFailure of Types.decryption_failure
| `InternalServiceError of Types.internal_service_error
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.batch_get_secret_value_request ->
(Types.batch_get_secret_value_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DecryptionFailure of Types.decryption_failure
| `InternalServiceError of Types.internal_service_error
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.batch_get_secret_value_request ->
(Types.batch_get_secret_value_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `DecryptionFailure of Types.decryption_failure
| `InternalServiceError of Types.internal_service_error
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result