{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-secrets-manager/json-schema/amazon-secrets-manager-batch-get-secret-value-response-schema.json",
  "title": "BatchGetSecretValueResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-secrets-manager-secret-value-api-openapi.yml#/components/schemas/BatchGetSecretValueResponse",
  "type": "object",
  "properties": {
    "SecretValues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SecretValueEntry"
      },
      "description": "A list of secret values."
    },
    "NextToken": {
      "type": "string",
      "description": "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."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/APIErrorType"
      },
      "description": "A list of errors Secrets Manager encountered while attempting to retrieve individual secrets."
    }
  },
  "$defs": {
    "APIErrorType": {
      "type": "object",
      "properties": {
        "SecretId": {
          "type": "string",
          "description": "The ARN or name of the secret."
        },
        "ErrorCode": {
          "type": "string",
          "description": "The error Secrets Manager encountered while retrieving an individual secret as part of BatchGetSecretValue, for example ResourceNotFoundException,InvalidParameterException, InvalidRequestException, DecryptionFailure, or AccessDeniedException."
        },
        "Message": {
          "type": "string",
          "description": "A message describing the error."
        }
      }
    },
    "SecretValueEntry": {
      "type": "object",
      "properties": {
        "ARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the secret."
        },
        "Name": {
          "type": "string",
          "description": "The friendly name of the secret."
        },
        "VersionId": {
          "type": "string",
          "description": "The unique version identifier of this version of the secret."
        },
        "SecretBinary": {
          "type": "string",
          "format": "byte",
          "description": "The decrypted secret value, if the secret value was originally provided as binary data in the form of a byte array. The parameter represents the binary data as a base64-encoded string."
        },
        "SecretString": {
          "type": "string",
          "description": "The decrypted secret value, if the secret value was originally provided as a string or through the Secrets Manager console."
        },
        "VersionStages": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of all of the staging labels currently attached to this version of the secret."
        },
        "CreatedDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date the secret was created."
        }
      }
    }
  }
}