Module Values.BatchGetSecretValueResponseSource

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 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.

Sourcetype nonrec t = {
  1. secretValues : SecretValuesType.t option;
    (*

    A list of secret values.

    *)
  2. nextToken : NextTokenType.t option;
    (*

    Secrets Manager includes this value if there's more output available than what is included in the current response. This can occur even when the response includes no values at all, such as when you ask for a filtered view of a long list. To get the next results, call BatchGetSecretValue again with this value.

    *)
  3. errors : APIErrorListType.t option;
    (*

    A list of errors Secrets Manager encountered while attempting to retrieve individual secrets.

    *)
}
Sourcetype nonrec error = [
  1. | `DecryptionFailure of DecryptionFailure.t
  2. | `InternalServiceError of InternalServiceError.t
  3. | `InvalidNextTokenException of InvalidNextTokenException.t
  4. | `InvalidParameterException of InvalidParameterException.t
  5. | `InvalidRequestException of InvalidRequestException.t
  6. | `ResourceNotFoundException of ResourceNotFoundException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?secretValues:??? -> ?nextToken:??? -> ?errors:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `DecryptionFailure of DecryptionFailure.t | `InternalServiceError of InternalServiceError.t | `InvalidNextTokenException of InvalidNextTokenException.t | `InvalidParameterException of InvalidParameterException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `DecryptionFailure of DecryptionFailure.t | `InternalServiceError of InternalServiceError.t | `InvalidNextTokenException of InvalidNextTokenException.t | `InvalidParameterException of InvalidParameterException.t | `InvalidRequestException of InvalidRequestException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Blob of SecretBinaryType.t | `List of [> `String of SecretVersionStageType.t ] list | `String of SecretARNType.t | `Timestamp of CreatedDateType.t ]) list ] list | `String of NextTokenType.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t