{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-batch-delete-cluster-nodes-response-schema.json",
  "title": "BatchDeleteClusterNodesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-cluster-node-api-openapi.yml#/components/schemas/BatchDeleteClusterNodesResponse",
  "type": "object",
  "properties": {
    "Failed": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchDeleteClusterNodesError"
      },
      "description": "A list of errors encountered when deleting the specified nodes."
    },
    "Successful": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of node IDs that were successfully deleted from the specified cluster."
    },
    "FailedNodeLogicalIds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchDeleteClusterNodeLogicalIdsError"
      },
      "description": "A list of NodeLogicalIds that could not be deleted, along with error information explaining why the deletion failed."
    },
    "SuccessfulNodeLogicalIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of NodeLogicalIds that were successfully deleted from the cluster."
    }
  },
  "$defs": {
    "BatchDeleteClusterNodeLogicalIdsError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "NodeIdNotFound",
            "InvalidNodeStatus",
            "NodeIdInUse"
          ],
          "description": "The error code associated with the failure. Possible values include NodeLogicalIdNotFound, InvalidNodeStatus, and InternalError."
        },
        "Message": {
          "type": "string",
          "description": "A descriptive message providing additional details about the error."
        },
        "NodeLogicalId": {
          "type": "string",
          "description": "The NodeLogicalId of the node that could not be deleted."
        }
      },
      "required": [
        "Code",
        "Message",
        "NodeLogicalId"
      ]
    },
    "BatchDeleteClusterNodesError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "NodeIdNotFound",
            "InvalidNodeStatus",
            "NodeIdInUse"
          ],
          "description": "The error code associated with the error encountered when deleting a node. The code provides information about the specific issue encountered, such as the node not being found, the node's status being invalid for deletion, or the node ID being in use by another process."
        },
        "Message": {
          "type": "string",
          "description": "A message describing the error encountered when deleting a node."
        },
        "NodeId": {
          "type": "string",
          "description": "The ID of the node that encountered an error during the deletion process."
        }
      },
      "required": [
        "Code",
        "Message",
        "NodeId"
      ]
    }
  }
}