{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-macie/json-schema/amazon-macie-batch-update-automated-discovery-accounts-response-schema.json",
  "title": "BatchUpdateAutomatedDiscoveryAccountsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-macie-automated-discovery-api-openapi.yml#/components/schemas/BatchUpdateAutomatedDiscoveryAccountsResponse",
  "type": "object",
  "properties": {
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutomatedDiscoveryAccountUpdateError"
      },
      "description": "An array of objects, one for each account whose status wasn't changed. Each object identifies the account and explains why the status of automated sensitive data discovery wasn't changed for the account. This value is null if the request succeeded for all specified accounts."
    }
  },
  "$defs": {
    "AutomatedDiscoveryAccountUpdateError": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID for the account that the request applied to."
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "ACCOUNT_PAUSED",
            "ACCOUNT_NOT_FOUND"
          ],
          "description": "The error code for the error that caused the request to fail for the account (accountId). Possible values are: ACCOUNT_NOT_FOUND, the account doesn't exist or you're not the Amazon Macie administrator for the account; and, ACCOUNT_PAUSED, Macie isn't enabled for the account in the current Amazon Web Services Region."
        }
      }
    }
  }
}