{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-organizations/json-schema/amazon-organizations-list-effective-policy-validation-errors-response-schema.json",
  "title": "ListEffectivePolicyValidationErrorsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-organizations-operations-api-openapi.yml#/components/schemas/ListEffectivePolicyValidationErrorsResponse",
  "type": "object",
  "properties": {
    "AccountId": {
      "type": "string",
      "description": "The ID of the specified account."
    },
    "PolicyType": {
      "type": "string",
      "enum": [
        "TAG_POLICY",
        "BACKUP_POLICY",
        "AISERVICES_OPT_OUT_POLICY",
        "CHATBOT_POLICY",
        "DECLARATIVE_POLICY_EC2",
        "SECURITYHUB_POLICY",
        "INSPECTOR_POLICY",
        "UPGRADE_ROLLOUT_POLICY",
        "BEDROCK_POLICY",
        "S3_POLICY",
        "NETWORK_SECURITY_DIRECTOR_POLICY",
        "GUARDDUTY_POLICY"
      ],
      "description": "The specified policy type. One of the following values: DECLARATIVE_POLICY_EC2 BACKUP_POLICY TAG_POLICY CHATBOT_POLICY AISERVICES_OPT_OUT_POLICY SECURITYHUB_POLICY UPGRADE_ROLLOUT_POLICY INSPECTOR_POLICY BEDROCK_POLICY S3_POLICY NETWORK_SECURITY_DIRECTOR_POLICY GUARDDUTY_POLICY"
    },
    "Path": {
      "type": "string",
      "description": "The path in the organization where the specified account exists."
    },
    "EvaluationTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the latest effective policy was generated for the specified account."
    },
    "NextToken": {
      "type": "string",
      "description": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null."
    },
    "EffectivePolicyValidationErrors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EffectivePolicyValidationError"
      },
      "description": "The EffectivePolicyValidationError object contains details about the validation errors that occurred when generating or enforcing an effective policy, such as which policies contributed to the error and location of the error."
    }
  },
  "$defs": {
    "EffectivePolicyValidationError": {
      "type": "object",
      "properties": {
        "ErrorCode": {
          "type": "string",
          "description": "The error code for the validation error. For example, ELEMENTS_TOO_MANY."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "The error message for the validation error."
        },
        "PathToError": {
          "type": "string",
          "description": "The path within the effective policy where the validation error occurred."
        },
        "ContributingPolicies": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The individual policies inherited and attached to the account which contributed to the validation error."
        }
      }
    }
  }
}