{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-update-cluster-scheduler-config-request-schema.json",
  "title": "UpdateClusterSchedulerConfigRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-cluster-scheduler-config-api-openapi.yml#/components/schemas/UpdateClusterSchedulerConfigRequest",
  "type": "object",
  "properties": {
    "ClusterSchedulerConfigId": {
      "type": "string",
      "description": "ID of the cluster policy."
    },
    "TargetVersion": {
      "type": "integer",
      "description": "Target version."
    },
    "SchedulerConfig": {
      "$ref": "#/$defs/SchedulerConfig"
    },
    "Description": {
      "type": "string",
      "description": "Description of the cluster policy."
    }
  },
  "required": [
    "ClusterSchedulerConfigId",
    "TargetVersion"
  ],
  "$defs": {
    "PriorityClass": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "Name of the priority class."
        },
        "Weight": {
          "type": "integer",
          "description": "Weight of the priority class. The value is within a range from 0 to 100, where 0 is the default. A weight of 0 is the lowest priority and 100 is the highest. Weight 0 is the default."
        }
      },
      "required": [
        "Name",
        "Weight"
      ]
    },
    "SchedulerConfig": {
      "type": "object",
      "properties": {
        "PriorityClasses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PriorityClass"
          },
          "description": "List of the priority classes, PriorityClass, of the cluster policy. When specified, these class configurations define how tasks are queued."
        },
        "FairShare": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "When enabled, entities borrow idle compute based on their assigned FairShareWeight. When disabled, entities borrow idle compute based on a first-come first-serve basis. Default is Enabled."
        },
        "IdleResourceSharing": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Configuration for sharing idle compute resources across entities in the cluster. When enabled, unallocated resources are automatically calculated and made available for entities to borrow."
        }
      }
    }
  }
}