{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-batch-update-standards-control-associations-response-schema.json",
  "title": "BatchUpdateStandardsControlAssociationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-associations-api-openapi.yml#/components/schemas/BatchUpdateStandardsControlAssociationsResponse",
  "type": "object",
  "properties": {
    "UnprocessedAssociationUpdates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UnprocessedStandardsControlAssociationUpdate"
      },
      "description": "A security control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters) whose enablement status in a specified standard couldn't be updated."
    }
  },
  "$defs": {
    "StandardsControlAssociationUpdate": {
      "type": "object",
      "properties": {
        "StandardsArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the standard in which you want to update the control's enablement status."
        },
        "SecurityControlId": {
          "type": "string",
          "description": "The unique identifier for the security control whose enablement status you want to update."
        },
        "AssociationStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The desired enablement status of the control in the standard."
        },
        "UpdatedReason": {
          "type": "string",
          "description": "The reason for updating the control's enablement status in the standard."
        }
      },
      "required": [
        "StandardsArn",
        "SecurityControlId",
        "AssociationStatus"
      ]
    },
    "UnprocessedStandardsControlAssociationUpdate": {
      "type": "object",
      "properties": {
        "StandardsControlAssociationUpdate": {
          "$ref": "#/$defs/StandardsControlAssociationUpdate"
        },
        "ErrorCode": {
          "type": "string",
          "enum": [
            "INVALID_INPUT",
            "ACCESS_DENIED",
            "NOT_FOUND",
            "RESOURCE_NOT_FOUND",
            "LIMIT_EXCEEDED"
          ],
          "description": "The error code for the unprocessed update of the control's enablement status in the specified standard. The NOT_FOUND value has been deprecated and replaced by the RESOURCE_NOT_FOUND value."
        },
        "ErrorReason": {
          "type": "string",
          "description": "The reason why a control's enablement status in the specified standard couldn't be updated."
        }
      },
      "required": [
        "StandardsControlAssociationUpdate",
        "ErrorCode"
      ]
    }
  }
}