{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-describe-cluster-scheduler-config-response-schema.json",
  "title": "DescribeClusterSchedulerConfigResponse",
  "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/DescribeClusterSchedulerConfigResponse",
  "type": "object",
  "properties": {
    "ClusterSchedulerConfigArn": {
      "type": "string",
      "description": "ARN of the cluster policy."
    },
    "ClusterSchedulerConfigId": {
      "type": "string",
      "description": "ID of the cluster policy."
    },
    "Name": {
      "type": "string",
      "description": "Name of the cluster policy."
    },
    "ClusterSchedulerConfigVersion": {
      "type": "integer",
      "description": "Version of the cluster policy."
    },
    "Status": {
      "type": "string",
      "enum": [
        "Creating",
        "CreateFailed",
        "CreateRollbackFailed",
        "Created",
        "Updating",
        "UpdateFailed",
        "UpdateRollbackFailed",
        "Updated",
        "Deleting",
        "DeleteFailed",
        "DeleteRollbackFailed",
        "Deleted"
      ],
      "description": "Status of the cluster policy."
    },
    "FailureReason": {
      "type": "string",
      "description": "Failure reason of the cluster policy."
    },
    "StatusDetails": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "enum": [
          "Creating",
          "CreateFailed",
          "CreateRollbackFailed",
          "Created",
          "Updating",
          "UpdateFailed",
          "UpdateRollbackFailed",
          "Updated",
          "Deleting",
          "DeleteFailed",
          "DeleteRollbackFailed",
          "Deleted"
        ]
      },
      "description": "Additional details about the status of the cluster policy. This field provides context when the policy is in a non-active state, such as during creation, updates, or if failures occur."
    },
    "ClusterArn": {
      "type": "string",
      "description": "ARN of the cluster where the cluster policy is applied."
    },
    "SchedulerConfig": {
      "$ref": "#/$defs/SchedulerConfig"
    },
    "Description": {
      "type": "string",
      "description": "Description of the cluster policy."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time of the cluster policy."
    },
    "CreatedBy": {
      "$ref": "#/$defs/UserContext"
    },
    "LastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "Last modified time of the cluster policy."
    },
    "LastModifiedBy": {
      "$ref": "#/$defs/UserContext"
    }
  },
  "required": [
    "ClusterSchedulerConfigArn",
    "ClusterSchedulerConfigId",
    "Name",
    "ClusterSchedulerConfigVersion",
    "Status",
    "CreationTime"
  ],
  "$defs": {
    "IamIdentity": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM identity."
        },
        "PrincipalId": {
          "type": "string",
          "description": "The ID of the principal that assumes the IAM identity."
        },
        "SourceIdentity": {
          "type": "string",
          "description": "The person or application which assumes the IAM identity."
        }
      }
    },
    "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."
        }
      }
    },
    "UserContext": {
      "type": "object",
      "properties": {
        "UserProfileArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the user's profile."
        },
        "UserProfileName": {
          "type": "string",
          "description": "The name of the user's profile."
        },
        "DomainId": {
          "type": "string",
          "description": "The domain associated with the user."
        },
        "IamIdentity": {
          "$ref": "#/$defs/IamIdentity"
        }
      }
    }
  }
}