{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-batch-get-configuration-policy-associations-response-schema.json",
  "title": "BatchGetConfigurationPolicyAssociationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-configurationpolicyassociation-api-openapi.yml#/components/schemas/BatchGetConfigurationPolicyAssociationsResponse",
  "type": "object",
  "properties": {
    "ConfigurationPolicyAssociations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConfigurationPolicyAssociationSummary"
      },
      "description": "Describes associations for the target accounts, OUs, or the root."
    },
    "UnprocessedConfigurationPolicyAssociations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UnprocessedConfigurationPolicyAssociation"
      },
      "description": "An array of configuration policy associations, one for each configuration policy association identifier, that was specified in the request but couldn’t be processed due to an error."
    }
  },
  "$defs": {
    "ConfigurationPolicyAssociation": {
      "type": "object",
      "properties": {
        "Target": {
          "$ref": "#/$defs/Target"
        }
      }
    },
    "ConfigurationPolicyAssociationSummary": {
      "type": "object",
      "properties": {
        "ConfigurationPolicyId": {
          "type": "string",
          "description": "The universally unique identifier (UUID) of the configuration policy."
        },
        "TargetId": {
          "type": "string",
          "description": "The identifier of the target account, organizational unit, or the root."
        },
        "TargetType": {
          "type": "string",
          "enum": [
            "ACCOUNT",
            "ORGANIZATIONAL_UNIT",
            "ROOT"
          ],
          "description": "Specifies whether the target is an Amazon Web Services account, organizational unit, or the root."
        },
        "AssociationType": {
          "type": "string",
          "enum": [
            "INHERITED",
            "APPLIED"
          ],
          "description": "Indicates whether the association between the specified target and the configuration was directly applied by the Security Hub CSPM delegated administrator or inherited from a parent."
        },
        "UpdatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated."
        },
        "AssociationStatus": {
          "type": "string",
          "enum": [
            "PENDING",
            "SUCCESS",
            "FAILED"
          ],
          "description": "The current status of the association between the specified target and the configuration."
        },
        "AssociationStatusMessage": {
          "type": "string",
          "description": "The explanation for a FAILED value for AssociationStatus."
        }
      }
    },
    "Target": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the target account."
        },
        "OrganizationalUnitId": {
          "type": "string",
          "description": "The organizational unit ID of the target organizational unit."
        },
        "RootId": {
          "type": "string",
          "description": "The ID of the organization root."
        }
      },
      "description": "Exactly one member is set."
    },
    "UnprocessedConfigurationPolicyAssociation": {
      "type": "object",
      "properties": {
        "ConfigurationPolicyAssociationIdentifiers": {
          "$ref": "#/$defs/ConfigurationPolicyAssociation"
        },
        "ErrorCode": {
          "type": "string",
          "description": "An HTTP status code that identifies why the configuration policy association failed."
        },
        "ErrorReason": {
          "type": "string",
          "description": "A string that identifies why the configuration policy association failed."
        }
      }
    }
  }
}