{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-create-cluster-request-schema.json",
  "title": "CreateClusterRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-cluster-api-openapi.yml#/components/schemas/CreateClusterRequest",
  "type": "object",
  "properties": {
    "ClusterName": {
      "type": "string",
      "description": "The name for the new SageMaker HyperPod cluster."
    },
    "InstanceGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClusterInstanceGroupSpecification"
      },
      "description": "The instance groups to be created in the SageMaker HyperPod cluster."
    },
    "RestrictedInstanceGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClusterRestrictedInstanceGroupSpecification"
      },
      "description": "The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster."
    },
    "RestrictedInstanceGroupsConfig": {
      "$ref": "#/$defs/ClusterRestrictedInstanceGroupsConfig"
    },
    "VpcConfig": {
      "$ref": "#/$defs/VpcConfig"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide."
    },
    "Orchestrator": {
      "$ref": "#/$defs/ClusterOrchestrator"
    },
    "NodeRecovery": {
      "type": "string",
      "enum": [
        "Automatic",
        "None"
      ],
      "description": "The node recovery mode for the SageMaker HyperPod cluster. When set to Automatic, SageMaker HyperPod will automatically reboot or replace faulty nodes when issues are detected. When set to None, cluster administrators will need to manually manage any faulty cluster instances."
    },
    "TieredStorageConfig": {
      "$ref": "#/$defs/ClusterTieredStorageConfig"
    },
    "NodeProvisioningMode": {
      "type": "string",
      "enum": [
        "Continuous"
      ],
      "description": "The mode for provisioning nodes in the cluster. You can specify the following modes: Continuous: Scaling behavior that enables 1) concurrent operation execution within instance groups, 2) continuous retry mechanisms for failed operations, 3) enhanced customer visibility into cluster events through detailed event streams, 4) partial provisioning capabilities. Your clusters and instance groups remain InService while scaling. This mode is only supported for EKS orchestrated clusters."
    },
    "ClusterRole": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that HyperPod assumes to perform cluster autoscaling operations. This role must have permissions for sagemaker:BatchAddClusterNodes and sagemaker:BatchDeleteClusterNodes. This is only required when autoscaling is enabled and when HyperPod is performing autoscaling operations."
    },
    "AutoScaling": {
      "$ref": "#/$defs/ClusterAutoScalingConfig"
    }
  },
  "required": [
    "ClusterName"
  ],
  "$defs": {
    "AlarmDetails": {
      "type": "object",
      "properties": {
        "AlarmName": {
          "type": "string",
          "description": "The name of the alarm."
        }
      },
      "required": [
        "AlarmName"
      ]
    },
    "CapacitySizeConfig": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "INSTANCE_COUNT",
            "CAPACITY_PERCENTAGE"
          ],
          "description": "Specifies whether SageMaker should process the update by amount or percentage of instances."
        },
        "Value": {
          "type": "integer",
          "description": "Specifies the amount or percentage of instances SageMaker updates at a time."
        }
      },
      "required": [
        "Type",
        "Value"
      ]
    },
    "ClusterAccountingDatabase": {
      "type": "object",
      "properties": {
        "Endpoint": {
          "type": "string",
          "description": "The hostname or endpoint of the accounting database, such as the endpoint of an Amazon RDS for MySQL or Aurora MySQL database. The database must be reachable from the subnets and security groups that you configure for the cluster."
        },
        "Port": {
          "type": "integer",
          "description": "The port that the accounting database listens on. The default is 3306."
        },
        "Name": {
          "type": "string",
          "description": "The name of the database schema that stores the Slurm accounting data. The default is slurm_acct_db_ followed by the cluster ID from the cluster ARN, for example slurm_acct_db_a1b2c3d4e5f6."
        },
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the user name and password for the accounting database. The database user must be able to create the schema and to read from and write to it."
        }
      },
      "required": [
        "Endpoint",
        "SecretArn"
      ]
    },
    "ClusterAutoPatchConfig": {
      "type": "object",
      "properties": {
        "PatchingStrategy": {
          "type": "string",
          "enum": [
            "WhenIdle",
            "WhenAllIdle"
          ],
          "description": "The strategy for applying patches to instances in the group. WhenIdle: Cordons all instances and patches each instance as it becomes idle (no running jobs). Each instance is uncordoned immediately after patching and becomes available for new jobs. If instances do not become idle, they remain on the previous AMI version. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances. WhenAllIdle: Cordons all instances and waits for all to become idle before patching. All instances are uncordoned after patching completes. If not all instanc"
        },
        "PatchSchedule": {
          "$ref": "#/$defs/ClusterPatchSchedule"
        },
        "DeploymentConfig": {
          "$ref": "#/$defs/DeploymentConfiguration"
        }
      },
      "required": [
        "PatchingStrategy"
      ]
    },
    "ClusterAutoScalingConfig": {
      "type": "object",
      "properties": {
        "Mode": {
          "type": "string",
          "enum": [
            "Enable",
            "Disable"
          ],
          "description": "Describes whether autoscaling is enabled or disabled for the cluster. Valid values are Enable and Disable."
        },
        "AutoScalerType": {
          "type": "string",
          "enum": [
            "Karpenter"
          ],
          "description": "The type of autoscaler to use. Currently supported value is Karpenter."
        }
      },
      "required": [
        "Mode"
      ]
    },
    "ClusterCapacityRequirements": {
      "type": "object",
      "properties": {
        "Spot": {
          "$ref": "#/$defs/ClusterSpotOptions"
        },
        "OnDemand": {
          "$ref": "#/$defs/ClusterOnDemandOptions"
        }
      }
    },
    "ClusterEbsVolumeConfig": {
      "type": "object",
      "properties": {
        "VolumeSizeInGB": {
          "type": "integer",
          "description": "The size in gigabytes (GB) of the additional EBS volume to be attached to the instances in the SageMaker HyperPod cluster instance group. The additional EBS volume is attached to each instance within the SageMaker HyperPod cluster instance group and mounted to /opt/sagemaker."
        },
        "VolumeKmsKeyId": {
          "type": "string",
          "description": "The ID of a KMS key to encrypt the Amazon EBS volume."
        },
        "RootVolume": {
          "type": "boolean",
          "description": "Specifies whether the configuration is for the cluster's root or secondary Amazon EBS volume. You can specify two ClusterEbsVolumeConfig fields to configure both the root and secondary volumes. Set the value to True if you'd like to provide your own customer managed Amazon Web Services KMS key to encrypt the root volume. When True: The configuration is applied to the root volume. You can't specify the VolumeSizeInGB field. The size of the root volume is determined for you. You must specify a KMS key ID for VolumeKmsKeyId to encrypt the root volume with your own KMS key instead of an Amazon Web"
        }
      }
    },
    "ClusterFsxLustreConfig": {
      "type": "object",
      "properties": {
        "DnsName": {
          "type": "string",
          "description": "The DNS name of the Amazon FSx for Lustre file system."
        },
        "MountName": {
          "type": "string",
          "description": "The mount name of the Amazon FSx for Lustre file system."
        },
        "MountPath": {
          "type": "string",
          "description": "The local path where the Amazon FSx for Lustre file system is mounted on instances."
        }
      },
      "required": [
        "DnsName",
        "MountName"
      ]
    },
    "ClusterFsxOpenZfsConfig": {
      "type": "object",
      "properties": {
        "DnsName": {
          "type": "string",
          "description": "The DNS name of the Amazon FSx for OpenZFS file system."
        },
        "MountPath": {
          "type": "string",
          "description": "The local path where the Amazon FSx for OpenZFS file system is mounted on instances."
        }
      },
      "required": [
        "DnsName"
      ]
    },
    "ClusterInstanceGroupSpecification": {
      "type": "object",
      "properties": {
        "InstanceCount": {
          "type": "integer",
          "description": "Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster."
        },
        "MinInstanceCount": {
          "type": "integer",
          "description": "Defines the minimum number of instances required for an instance group to become InService. If this threshold isn't met within 3 hours, the instance group rolls back to its previous state - zero instances for new instance groups, or previous settings for existing instance groups. MinInstanceCount only affects the initial transition to InService and does not guarantee maintaining this minimum afterward."
        },
        "InstanceGroupName": {
          "type": "string",
          "description": "Specifies the name of the instance group."
        },
        "InstanceType": {
          "type": "string",
          "enum": [
            "ml.p4d.24xlarge",
            "ml.p4de.24xlarge",
            "ml.p5.48xlarge",
            "ml.p5.4xlarge",
            "ml.p6e-gb200.36xlarge",
            "ml.trn1.32xlarge",
            "ml.trn1n.32xlarge",
            "ml.g5.xlarge",
            "ml.g5.2xlarge",
            "ml.g5.4xlarge",
            "ml.g5.8xlarge",
            "ml.g5.12xlarge",
            "ml.g5.16xlarge",
            "ml.g5.24xlarge",
            "ml.g5.48xlarge",
            "ml.c5.large",
            "ml.c5.xlarge",
            "ml.c5.2xlarge",
            "ml.c5.4xlarge",
            "ml.c5.9xlarge",
            "ml.c5.12xlarge",
            "ml.c5.18xlarge",
            "ml.c5.24xlarge",
            "ml.c5n.large",
            "ml.c5n.2xlarge",
            "ml.c5n.4xlarge",
            "ml.c5n.9xlarge",
            "ml.c5n.18xlarge",
            "ml.m5.large",
            "ml.m5.xlarge",
            "ml.m5.2xlarge",
            "ml.m5.4xlarge",
            "ml.m5.8xlarge",
            "ml.m5.12xlarge",
            "ml.m5.16xlarge",
            "ml.m5.24xlarge",
            "ml.t3.medium",
            "ml.t3.large",
            "ml.t3.xlarge",
            "ml.t3.2xlarge",
            "ml.g6.xlarge",
            "ml.g6.2xlarge",
            "ml.g6.4xlarge",
            "ml.g6.8xlarge",
            "ml.g6.16xlarge",
            "ml.g6.12xlarge",
            "ml.g6.24xlarge",
            "ml.g6.48xlarge",
            "ml.gr6.4xlarge",
            "ml.gr6.8xlarge",
            "ml.g6e.xlarge",
            "ml.g6e.2xlarge",
            "ml.g6e.4xlarge",
            "ml.g6e.8xlarge",
            "ml.g6e.16xlarge",
            "ml.g6e.12xlarge",
            "ml.g6e.24xlarge",
            "ml.g6e.48xlarge",
            "ml.p5e.48xlarge",
            "ml.p5en.48xlarge",
            "ml.p6-b200.48xlarge",
            "ml.trn2.3xlarge",
            "ml.trn2.48xlarge",
            "ml.c6i.large",
            "ml.c6i.xlarge",
            "ml.c6i.2xlarge",
            "ml.c6i.4xlarge",
            "ml.c6i.8xlarge",
            "ml.c6i.12xlarge",
            "ml.c6i.16xlarge",
            "ml.c6i.24xlarge",
            "ml.c6i.32xlarge",
            "ml.m6i.large",
            "ml.m6i.xlarge",
            "ml.m6i.2xlarge",
            "ml.m6i.4xlarge",
            "ml.m6i.8xlarge",
            "ml.m6i.12xlarge",
            "ml.m6i.16xlarge",
            "ml.m6i.24xlarge",
            "ml.m6i.32xlarge",
            "ml.r6i.large",
            "ml.r6i.xlarge",
            "ml.r6i.2xlarge",
            "ml.r6i.4xlarge",
            "ml.r6i.8xlarge",
            "ml.r6i.12xlarge",
            "ml.r6i.16xlarge",
            "ml.r6i.24xlarge",
            "ml.r6i.32xlarge",
            "ml.i3en.large",
            "ml.i3en.xlarge",
            "ml.i3en.2xlarge",
            "ml.i3en.3xlarge",
            "ml.i3en.6xlarge",
            "ml.i3en.12xlarge",
            "ml.i3en.24xlarge",
            "ml.m7i.large",
            "ml.m7i.xlarge",
            "ml.m7i.2xlarge",
            "ml.m7i.4xlarge",
            "ml.m7i.8xlarge",
            "ml.m7i.12xlarge",
            "ml.m7i.16xlarge",
            "ml.m7i.24xlarge",
            "ml.m7i.48xlarge",
            "ml.r7i.large",
            "ml.r7i.xlarge",
            "ml.r7i.2xlarge",
            "ml.r7i.4xlarge",
            "ml.r7i.8xlarge",
            "ml.r7i.12xlarge",
            "ml.r7i.16xlarge",
            "ml.r7i.24xlarge",
            "ml.r7i.48xlarge",
            "ml.r5d.16xlarge",
            "ml.g7e.2xlarge",
            "ml.g7e.4xlarge",
            "ml.g7e.8xlarge",
            "ml.g7e.12xlarge",
            "ml.g7e.24xlarge",
            "ml.g7e.48xlarge",
            "ml.p6-b300.48xlarge",
            "ml.g4dn.xlarge",
            "ml.g4dn.2xlarge",
            "ml.g4dn.4xlarge",
            "ml.g4dn.8xlarge",
            "ml.g4dn.12xlarge",
            "ml.g4dn.16xlarge",
            "ml.c6g.medium",
            "ml.c6g.large",
            "ml.c6g.xlarge",
            "ml.c6g.2xlarge",
            "ml.c6g.4xlarge",
            "ml.c6g.8xlarge",
            "ml.c6g.12xlarge",
            "ml.c6g.16xlarge",
            "ml.c7g.medium",
            "ml.c7g.large",
            "ml.c7g.xlarge",
            "ml.c7g.2xlarge",
            "ml.c7g.4xlarge",
            "ml.c7g.8xlarge",
            "ml.c7g.12xlarge",
            "ml.c7g.16xlarge",
            "ml.c8g.medium",
            "ml.c8g.large",
            "ml.c8g.xlarge",
            "ml.c8g.2xlarge",
            "ml.c8g.4xlarge",
            "ml.c8g.8xlarge",
            "ml.c8g.12xlarge",
            "ml.c8g.16xlarge",
            "ml.c8g.24xlarge",
            "ml.c8g.48xlarge",
            "ml.c6a.large",
            "ml.c6a.xlarge",
            "ml.c6a.2xlarge",
            "ml.c6a.4xlarge",
            "ml.c6a.8xlarge",
            "ml.c6a.12xlarge",
            "ml.c6a.16xlarge",
            "ml.c6a.24xlarge",
            "ml.c6a.32xlarge",
            "ml.c6a.48xlarge",
            "ml.m6a.large",
            "ml.m6a.xlarge",
            "ml.m6a.2xlarge",
            "ml.m6a.4xlarge",
            "ml.m6a.8xlarge",
            "ml.m6a.12xlarge",
            "ml.m6a.16xlarge",
            "ml.m6a.24xlarge",
            "ml.m6a.32xlarge",
            "ml.m6a.48xlarge",
            "ml.m6g.medium",
            "ml.m6g.large",
            "ml.m6g.xlarge",
            "ml.m6g.2xlarge",
            "ml.m6g.4xlarge",
            "ml.m6g.8xlarge",
            "ml.m6g.12xlarge",
            "ml.m6g.16xlarge",
            "ml.m7g.medium",
            "ml.m7g.large",
            "ml.m7g.xlarge",
            "ml.m7g.2xlarge",
            "ml.m7g.4xlarge",
            "ml.m7g.8xlarge",
            "ml.m7g.12xlarge",
            "ml.m7g.16xlarge",
            "ml.m8g.medium",
            "ml.m8g.large",
            "ml.m8g.xlarge",
            "ml.m8g.2xlarge",
            "ml.m8g.4xlarge",
            "ml.m8g.8xlarge",
            "ml.m8g.12xlarge",
            "ml.m8g.16xlarge",
            "ml.m8g.24xlarge",
            "ml.m8g.48xlarge",
            "ml.g7.2xlarge",
            "ml.g7.4xlarge",
            "ml.g7.8xlarge",
            "ml.g7.12xlarge",
            "ml.g7.24xlarge",
            "ml.g7.48xlarge",
            "ml.c8a.16xlarge",
            "ml.m8a.16xlarge"
          ],
          "description": "Specifies the instance type of the instance group."
        },
        "InstanceRequirements": {
          "$ref": "#/$defs/ClusterInstanceRequirements"
        },
        "LifeCycleConfig": {
          "$ref": "#/$defs/ClusterLifeCycleConfig"
        },
        "ExecutionRole": {
          "type": "string",
          "description": "Specifies an IAM execution role to be assumed by the instance group."
        },
        "ThreadsPerCore": {
          "type": "integer",
          "description": "Specifies the value for Threads per core. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For instance types that doesn't support multithreading, specify 1. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide."
        },
        "InstanceStorageConfigs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClusterInstanceStorageConfig"
          },
          "description": "Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group."
        },
        "OnStartDeepHealthChecks": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "InstanceStress",
              "InstanceConnectivity",
              "MultiNodeTrainingValidation"
            ]
          },
          "description": "A flag indicating whether deep health checks should be performed when the cluster instance group is created or updated."
        },
        "TrainingPlanArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN); of the training plan to use for this cluster instance group. For more information about how to reserve GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see CreateTrainingPlan ."
        },
        "OverrideVpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        },
        "ScheduledUpdateConfig": {
          "$ref": "#/$defs/ScheduledUpdateConfig"
        },
        "ImageId": {
          "type": "string",
          "description": "When configuring your HyperPod cluster, you can specify an image ID using one of the following options: HyperPodPublicAmiId: Use a HyperPod public AMI CustomAmiId: Use your custom AMI default: Use the default latest system image. For clusters with continuous scaling node provisioning mode, new instance groups inherit the AMI from the earliest existing instance group If you choose to use a custom AMI (CustomAmiId), ensure it meets the following requirements: Encryption: The custom AMI must be unencrypted. Ownership: The custom AMI must be owned by the same Amazon Web Services account that is cr"
        },
        "AutoPatchConfig": {
          "$ref": "#/$defs/ClusterAutoPatchConfig"
        },
        "ImageReleaseVersion": {
          "type": "string",
          "description": "The version of the HyperPod-managed AMI to use for the instance group. Uses semantic versioning in the format MAJOR.MINOR.PATCH (for example, 1.2.3). If omitted, the latest available version is used."
        },
        "KubernetesConfig": {
          "$ref": "#/$defs/ClusterKubernetesConfig"
        },
        "SlurmConfig": {
          "$ref": "#/$defs/ClusterSlurmConfig"
        },
        "CapacityRequirements": {
          "$ref": "#/$defs/ClusterCapacityRequirements"
        },
        "NetworkInterface": {
          "$ref": "#/$defs/ClusterNetworkInterface"
        }
      },
      "required": [
        "InstanceCount",
        "InstanceGroupName",
        "ExecutionRole"
      ]
    },
    "ClusterInstanceRequirements": {
      "type": "object",
      "properties": {
        "InstanceTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ml.p4d.24xlarge",
              "ml.p4de.24xlarge",
              "ml.p5.48xlarge",
              "ml.p5.4xlarge",
              "ml.p6e-gb200.36xlarge",
              "ml.trn1.32xlarge",
              "ml.trn1n.32xlarge",
              "ml.g5.xlarge",
              "ml.g5.2xlarge",
              "ml.g5.4xlarge",
              "ml.g5.8xlarge",
              "ml.g5.12xlarge",
              "ml.g5.16xlarge",
              "ml.g5.24xlarge",
              "ml.g5.48xlarge",
              "ml.c5.large",
              "ml.c5.xlarge",
              "ml.c5.2xlarge",
              "ml.c5.4xlarge",
              "ml.c5.9xlarge",
              "ml.c5.12xlarge",
              "ml.c5.18xlarge",
              "ml.c5.24xlarge",
              "ml.c5n.large",
              "ml.c5n.2xlarge",
              "ml.c5n.4xlarge",
              "ml.c5n.9xlarge",
              "ml.c5n.18xlarge",
              "ml.m5.large",
              "ml.m5.xlarge",
              "ml.m5.2xlarge",
              "ml.m5.4xlarge",
              "ml.m5.8xlarge",
              "ml.m5.12xlarge",
              "ml.m5.16xlarge",
              "ml.m5.24xlarge",
              "ml.t3.medium",
              "ml.t3.large",
              "ml.t3.xlarge",
              "ml.t3.2xlarge",
              "ml.g6.xlarge",
              "ml.g6.2xlarge",
              "ml.g6.4xlarge",
              "ml.g6.8xlarge",
              "ml.g6.16xlarge",
              "ml.g6.12xlarge",
              "ml.g6.24xlarge",
              "ml.g6.48xlarge",
              "ml.gr6.4xlarge",
              "ml.gr6.8xlarge",
              "ml.g6e.xlarge",
              "ml.g6e.2xlarge",
              "ml.g6e.4xlarge",
              "ml.g6e.8xlarge",
              "ml.g6e.16xlarge",
              "ml.g6e.12xlarge",
              "ml.g6e.24xlarge",
              "ml.g6e.48xlarge",
              "ml.p5e.48xlarge",
              "ml.p5en.48xlarge",
              "ml.p6-b200.48xlarge",
              "ml.trn2.3xlarge",
              "ml.trn2.48xlarge",
              "ml.c6i.large",
              "ml.c6i.xlarge",
              "ml.c6i.2xlarge",
              "ml.c6i.4xlarge",
              "ml.c6i.8xlarge",
              "ml.c6i.12xlarge",
              "ml.c6i.16xlarge",
              "ml.c6i.24xlarge",
              "ml.c6i.32xlarge",
              "ml.m6i.large",
              "ml.m6i.xlarge",
              "ml.m6i.2xlarge",
              "ml.m6i.4xlarge",
              "ml.m6i.8xlarge",
              "ml.m6i.12xlarge",
              "ml.m6i.16xlarge",
              "ml.m6i.24xlarge",
              "ml.m6i.32xlarge",
              "ml.r6i.large",
              "ml.r6i.xlarge",
              "ml.r6i.2xlarge",
              "ml.r6i.4xlarge",
              "ml.r6i.8xlarge",
              "ml.r6i.12xlarge",
              "ml.r6i.16xlarge",
              "ml.r6i.24xlarge",
              "ml.r6i.32xlarge",
              "ml.i3en.large",
              "ml.i3en.xlarge",
              "ml.i3en.2xlarge",
              "ml.i3en.3xlarge",
              "ml.i3en.6xlarge",
              "ml.i3en.12xlarge",
              "ml.i3en.24xlarge",
              "ml.m7i.large",
              "ml.m7i.xlarge",
              "ml.m7i.2xlarge",
              "ml.m7i.4xlarge",
              "ml.m7i.8xlarge",
              "ml.m7i.12xlarge",
              "ml.m7i.16xlarge",
              "ml.m7i.24xlarge",
              "ml.m7i.48xlarge",
              "ml.r7i.large",
              "ml.r7i.xlarge",
              "ml.r7i.2xlarge",
              "ml.r7i.4xlarge",
              "ml.r7i.8xlarge",
              "ml.r7i.12xlarge",
              "ml.r7i.16xlarge",
              "ml.r7i.24xlarge",
              "ml.r7i.48xlarge",
              "ml.r5d.16xlarge",
              "ml.g7e.2xlarge",
              "ml.g7e.4xlarge",
              "ml.g7e.8xlarge",
              "ml.g7e.12xlarge",
              "ml.g7e.24xlarge",
              "ml.g7e.48xlarge",
              "ml.p6-b300.48xlarge",
              "ml.g4dn.xlarge",
              "ml.g4dn.2xlarge",
              "ml.g4dn.4xlarge",
              "ml.g4dn.8xlarge",
              "ml.g4dn.12xlarge",
              "ml.g4dn.16xlarge",
              "ml.c6g.medium",
              "ml.c6g.large",
              "ml.c6g.xlarge",
              "ml.c6g.2xlarge",
              "ml.c6g.4xlarge",
              "ml.c6g.8xlarge",
              "ml.c6g.12xlarge",
              "ml.c6g.16xlarge",
              "ml.c7g.medium",
              "ml.c7g.large",
              "ml.c7g.xlarge",
              "ml.c7g.2xlarge",
              "ml.c7g.4xlarge",
              "ml.c7g.8xlarge",
              "ml.c7g.12xlarge",
              "ml.c7g.16xlarge",
              "ml.c8g.medium",
              "ml.c8g.large",
              "ml.c8g.xlarge",
              "ml.c8g.2xlarge",
              "ml.c8g.4xlarge",
              "ml.c8g.8xlarge",
              "ml.c8g.12xlarge",
              "ml.c8g.16xlarge",
              "ml.c8g.24xlarge",
              "ml.c8g.48xlarge",
              "ml.c6a.large",
              "ml.c6a.xlarge",
              "ml.c6a.2xlarge",
              "ml.c6a.4xlarge",
              "ml.c6a.8xlarge",
              "ml.c6a.12xlarge",
              "ml.c6a.16xlarge",
              "ml.c6a.24xlarge",
              "ml.c6a.32xlarge",
              "ml.c6a.48xlarge",
              "ml.m6a.large",
              "ml.m6a.xlarge",
              "ml.m6a.2xlarge",
              "ml.m6a.4xlarge",
              "ml.m6a.8xlarge",
              "ml.m6a.12xlarge",
              "ml.m6a.16xlarge",
              "ml.m6a.24xlarge",
              "ml.m6a.32xlarge",
              "ml.m6a.48xlarge",
              "ml.m6g.medium",
              "ml.m6g.large",
              "ml.m6g.xlarge",
              "ml.m6g.2xlarge",
              "ml.m6g.4xlarge",
              "ml.m6g.8xlarge",
              "ml.m6g.12xlarge",
              "ml.m6g.16xlarge",
              "ml.m7g.medium",
              "ml.m7g.large",
              "ml.m7g.xlarge",
              "ml.m7g.2xlarge",
              "ml.m7g.4xlarge",
              "ml.m7g.8xlarge",
              "ml.m7g.12xlarge",
              "ml.m7g.16xlarge",
              "ml.m8g.medium",
              "ml.m8g.large",
              "ml.m8g.xlarge",
              "ml.m8g.2xlarge",
              "ml.m8g.4xlarge",
              "ml.m8g.8xlarge",
              "ml.m8g.12xlarge",
              "ml.m8g.16xlarge",
              "ml.m8g.24xlarge",
              "ml.m8g.48xlarge",
              "ml.g7.2xlarge",
              "ml.g7.4xlarge",
              "ml.g7.8xlarge",
              "ml.g7.12xlarge",
              "ml.g7.24xlarge",
              "ml.g7.48xlarge",
              "ml.c8a.16xlarge",
              "ml.m8a.16xlarge"
            ]
          },
          "description": "The list of instance types that the instance group can use. The order of instance types determines the priority—HyperPod attempts to provision instances using the first instance type in the list and falls back to subsequent types if capacity is unavailable."
        }
      },
      "required": [
        "InstanceTypes"
      ]
    },
    "ClusterInstanceStorageConfig": {
      "type": "object",
      "properties": {
        "EbsVolumeConfig": {
          "$ref": "#/$defs/ClusterEbsVolumeConfig"
        },
        "FsxLustreConfig": {
          "$ref": "#/$defs/ClusterFsxLustreConfig"
        },
        "FsxOpenZfsConfig": {
          "$ref": "#/$defs/ClusterFsxOpenZfsConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "ClusterKubernetesConfig": {
      "type": "object",
      "properties": {
        "Labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value pairs of labels to be applied to cluster nodes."
        },
        "Taints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClusterKubernetesTaint"
          },
          "description": "List of taints to be applied to cluster nodes."
        }
      }
    },
    "ClusterKubernetesTaint": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the taint."
        },
        "Value": {
          "type": "string",
          "description": "The value of the taint."
        },
        "Effect": {
          "type": "string",
          "enum": [
            "NoSchedule",
            "PreferNoSchedule",
            "NoExecute"
          ],
          "description": "The effect of the taint. Valid values are NoSchedule, PreferNoSchedule, and NoExecute."
        }
      },
      "required": [
        "Key",
        "Effect"
      ]
    },
    "ClusterLifeCycleConfig": {
      "type": "object",
      "properties": {
        "SourceS3Uri": {
          "type": "string",
          "description": "An Amazon S3 bucket path where your lifecycle scripts are stored. Make sure that the S3 bucket path starts with s3://sagemaker-. The IAM role for SageMaker HyperPod has the managed AmazonSageMakerClusterInstanceRolePolicy attached, which allows access to S3 buckets with the specific prefix sagemaker-."
        },
        "OnCreate": {
          "type": "string",
          "description": "The file name of the entrypoint script of lifecycle scripts under SourceS3Uri. This entrypoint script runs during cluster creation."
        },
        "OnInitComplete": {
          "type": "string",
          "description": "The file name of the entrypoint script of lifecycle scripts under SourceS3Uri. This script runs on the node after the AMI-based initialization is complete."
        }
      }
    },
    "ClusterNetworkInterface": {
      "type": "object",
      "properties": {
        "InterfaceType": {
          "type": "string",
          "enum": [
            "efa",
            "efa-only"
          ],
          "description": "The type of network interface for the instance group. Valid values: efa – An EFA with ENA interface, which provides both the EFA device for low-latency, high-throughput communication and the ENA device for IP networking. efa-only – An EFA-only interface, which provides only the EFA device capabilities without the ENA device for traditional IP networking. For more information, see Elastic Fabric Adapter."
        }
      }
    },
    "ClusterOnDemandOptions": {
      "type": "object",
      "properties": {}
    },
    "ClusterOrchestrator": {
      "type": "object",
      "properties": {
        "Eks": {
          "$ref": "#/$defs/ClusterOrchestratorEksConfig"
        },
        "Slurm": {
          "$ref": "#/$defs/ClusterOrchestratorSlurmConfig"
        }
      }
    },
    "ClusterOrchestratorEksConfig": {
      "type": "object",
      "properties": {
        "ClusterArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon EKS cluster associated with the SageMaker HyperPod cluster."
        }
      },
      "required": [
        "ClusterArn"
      ]
    },
    "ClusterOrchestratorSlurmConfig": {
      "type": "object",
      "properties": {
        "SlurmConfigStrategy": {
          "type": "string",
          "enum": [
            "Overwrite",
            "Managed",
            "Merge"
          ],
          "description": "The strategy for managing partitions for the Slurm configuration. Valid values are Managed, Overwrite, and Merge."
        },
        "AccountingDatabase": {
          "$ref": "#/$defs/ClusterAccountingDatabase"
        }
      }
    },
    "ClusterPatchSchedule": {
      "type": "object",
      "properties": {
        "NextPatchDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time of the next scheduled automatic patch. The system sets this automatically when a patch is detected. Use this field to reschedule the patch to a different date."
        }
      }
    },
    "ClusterRestrictedInstanceGroupSpecification": {
      "type": "object",
      "properties": {
        "InstanceCount": {
          "type": "integer",
          "description": "Specifies the number of instances to add to the restricted instance group of a SageMaker HyperPod cluster."
        },
        "InstanceGroupName": {
          "type": "string",
          "description": "Specifies the name of the restricted instance group."
        },
        "InstanceType": {
          "type": "string",
          "enum": [
            "ml.p4d.24xlarge",
            "ml.p4de.24xlarge",
            "ml.p5.48xlarge",
            "ml.p5.4xlarge",
            "ml.p6e-gb200.36xlarge",
            "ml.trn1.32xlarge",
            "ml.trn1n.32xlarge",
            "ml.g5.xlarge",
            "ml.g5.2xlarge",
            "ml.g5.4xlarge",
            "ml.g5.8xlarge",
            "ml.g5.12xlarge",
            "ml.g5.16xlarge",
            "ml.g5.24xlarge",
            "ml.g5.48xlarge",
            "ml.c5.large",
            "ml.c5.xlarge",
            "ml.c5.2xlarge",
            "ml.c5.4xlarge",
            "ml.c5.9xlarge",
            "ml.c5.12xlarge",
            "ml.c5.18xlarge",
            "ml.c5.24xlarge",
            "ml.c5n.large",
            "ml.c5n.2xlarge",
            "ml.c5n.4xlarge",
            "ml.c5n.9xlarge",
            "ml.c5n.18xlarge",
            "ml.m5.large",
            "ml.m5.xlarge",
            "ml.m5.2xlarge",
            "ml.m5.4xlarge",
            "ml.m5.8xlarge",
            "ml.m5.12xlarge",
            "ml.m5.16xlarge",
            "ml.m5.24xlarge",
            "ml.t3.medium",
            "ml.t3.large",
            "ml.t3.xlarge",
            "ml.t3.2xlarge",
            "ml.g6.xlarge",
            "ml.g6.2xlarge",
            "ml.g6.4xlarge",
            "ml.g6.8xlarge",
            "ml.g6.16xlarge",
            "ml.g6.12xlarge",
            "ml.g6.24xlarge",
            "ml.g6.48xlarge",
            "ml.gr6.4xlarge",
            "ml.gr6.8xlarge",
            "ml.g6e.xlarge",
            "ml.g6e.2xlarge",
            "ml.g6e.4xlarge",
            "ml.g6e.8xlarge",
            "ml.g6e.16xlarge",
            "ml.g6e.12xlarge",
            "ml.g6e.24xlarge",
            "ml.g6e.48xlarge",
            "ml.p5e.48xlarge",
            "ml.p5en.48xlarge",
            "ml.p6-b200.48xlarge",
            "ml.trn2.3xlarge",
            "ml.trn2.48xlarge",
            "ml.c6i.large",
            "ml.c6i.xlarge",
            "ml.c6i.2xlarge",
            "ml.c6i.4xlarge",
            "ml.c6i.8xlarge",
            "ml.c6i.12xlarge",
            "ml.c6i.16xlarge",
            "ml.c6i.24xlarge",
            "ml.c6i.32xlarge",
            "ml.m6i.large",
            "ml.m6i.xlarge",
            "ml.m6i.2xlarge",
            "ml.m6i.4xlarge",
            "ml.m6i.8xlarge",
            "ml.m6i.12xlarge",
            "ml.m6i.16xlarge",
            "ml.m6i.24xlarge",
            "ml.m6i.32xlarge",
            "ml.r6i.large",
            "ml.r6i.xlarge",
            "ml.r6i.2xlarge",
            "ml.r6i.4xlarge",
            "ml.r6i.8xlarge",
            "ml.r6i.12xlarge",
            "ml.r6i.16xlarge",
            "ml.r6i.24xlarge",
            "ml.r6i.32xlarge",
            "ml.i3en.large",
            "ml.i3en.xlarge",
            "ml.i3en.2xlarge",
            "ml.i3en.3xlarge",
            "ml.i3en.6xlarge",
            "ml.i3en.12xlarge",
            "ml.i3en.24xlarge",
            "ml.m7i.large",
            "ml.m7i.xlarge",
            "ml.m7i.2xlarge",
            "ml.m7i.4xlarge",
            "ml.m7i.8xlarge",
            "ml.m7i.12xlarge",
            "ml.m7i.16xlarge",
            "ml.m7i.24xlarge",
            "ml.m7i.48xlarge",
            "ml.r7i.large",
            "ml.r7i.xlarge",
            "ml.r7i.2xlarge",
            "ml.r7i.4xlarge",
            "ml.r7i.8xlarge",
            "ml.r7i.12xlarge",
            "ml.r7i.16xlarge",
            "ml.r7i.24xlarge",
            "ml.r7i.48xlarge",
            "ml.r5d.16xlarge",
            "ml.g7e.2xlarge",
            "ml.g7e.4xlarge",
            "ml.g7e.8xlarge",
            "ml.g7e.12xlarge",
            "ml.g7e.24xlarge",
            "ml.g7e.48xlarge",
            "ml.p6-b300.48xlarge",
            "ml.g4dn.xlarge",
            "ml.g4dn.2xlarge",
            "ml.g4dn.4xlarge",
            "ml.g4dn.8xlarge",
            "ml.g4dn.12xlarge",
            "ml.g4dn.16xlarge",
            "ml.c6g.medium",
            "ml.c6g.large",
            "ml.c6g.xlarge",
            "ml.c6g.2xlarge",
            "ml.c6g.4xlarge",
            "ml.c6g.8xlarge",
            "ml.c6g.12xlarge",
            "ml.c6g.16xlarge",
            "ml.c7g.medium",
            "ml.c7g.large",
            "ml.c7g.xlarge",
            "ml.c7g.2xlarge",
            "ml.c7g.4xlarge",
            "ml.c7g.8xlarge",
            "ml.c7g.12xlarge",
            "ml.c7g.16xlarge",
            "ml.c8g.medium",
            "ml.c8g.large",
            "ml.c8g.xlarge",
            "ml.c8g.2xlarge",
            "ml.c8g.4xlarge",
            "ml.c8g.8xlarge",
            "ml.c8g.12xlarge",
            "ml.c8g.16xlarge",
            "ml.c8g.24xlarge",
            "ml.c8g.48xlarge",
            "ml.c6a.large",
            "ml.c6a.xlarge",
            "ml.c6a.2xlarge",
            "ml.c6a.4xlarge",
            "ml.c6a.8xlarge",
            "ml.c6a.12xlarge",
            "ml.c6a.16xlarge",
            "ml.c6a.24xlarge",
            "ml.c6a.32xlarge",
            "ml.c6a.48xlarge",
            "ml.m6a.large",
            "ml.m6a.xlarge",
            "ml.m6a.2xlarge",
            "ml.m6a.4xlarge",
            "ml.m6a.8xlarge",
            "ml.m6a.12xlarge",
            "ml.m6a.16xlarge",
            "ml.m6a.24xlarge",
            "ml.m6a.32xlarge",
            "ml.m6a.48xlarge",
            "ml.m6g.medium",
            "ml.m6g.large",
            "ml.m6g.xlarge",
            "ml.m6g.2xlarge",
            "ml.m6g.4xlarge",
            "ml.m6g.8xlarge",
            "ml.m6g.12xlarge",
            "ml.m6g.16xlarge",
            "ml.m7g.medium",
            "ml.m7g.large",
            "ml.m7g.xlarge",
            "ml.m7g.2xlarge",
            "ml.m7g.4xlarge",
            "ml.m7g.8xlarge",
            "ml.m7g.12xlarge",
            "ml.m7g.16xlarge",
            "ml.m8g.medium",
            "ml.m8g.large",
            "ml.m8g.xlarge",
            "ml.m8g.2xlarge",
            "ml.m8g.4xlarge",
            "ml.m8g.8xlarge",
            "ml.m8g.12xlarge",
            "ml.m8g.16xlarge",
            "ml.m8g.24xlarge",
            "ml.m8g.48xlarge",
            "ml.g7.2xlarge",
            "ml.g7.4xlarge",
            "ml.g7.8xlarge",
            "ml.g7.12xlarge",
            "ml.g7.24xlarge",
            "ml.g7.48xlarge",
            "ml.c8a.16xlarge",
            "ml.m8a.16xlarge"
          ],
          "description": "Specifies the instance type of the restricted instance group."
        },
        "ExecutionRole": {
          "type": "string",
          "description": "Specifies an IAM execution role to be assumed by the restricted instance group."
        },
        "ThreadsPerCore": {
          "type": "integer",
          "description": "The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide."
        },
        "InstanceStorageConfigs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClusterInstanceStorageConfig"
          },
          "description": "Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group."
        },
        "OnStartDeepHealthChecks": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "InstanceStress",
              "InstanceConnectivity",
              "MultiNodeTrainingValidation"
            ]
          },
          "description": "A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated."
        },
        "TrainingPlanArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see CreateTrainingPlan ."
        },
        "OverrideVpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        },
        "ScheduledUpdateConfig": {
          "$ref": "#/$defs/ScheduledUpdateConfig"
        },
        "EnvironmentConfig": {
          "$ref": "#/$defs/EnvironmentConfig"
        }
      },
      "required": [
        "InstanceCount",
        "InstanceGroupName",
        "InstanceType",
        "ExecutionRole"
      ]
    },
    "ClusterRestrictedInstanceGroupsConfig": {
      "type": "object",
      "properties": {
        "SharedEnvironmentConfig": {
          "$ref": "#/$defs/ClusterSharedEnvironmentConfig"
        }
      },
      "required": [
        "SharedEnvironmentConfig"
      ]
    },
    "ClusterSharedEnvironmentConfig": {
      "type": "object",
      "properties": {
        "FSxLustreDeletionPolicy": {
          "type": "string",
          "enum": [
            "DeleteIfNotUsed",
            "Keep"
          ],
          "description": "The deletion policy for the Amazon FSx for Lustre file system in the shared environment."
        },
        "FSxLustreConfig": {
          "$ref": "#/$defs/FSxLustreConfig"
        }
      },
      "required": [
        "FSxLustreDeletionPolicy",
        "FSxLustreConfig"
      ]
    },
    "ClusterSlurmConfig": {
      "type": "object",
      "properties": {
        "NodeType": {
          "type": "string",
          "enum": [
            "Controller",
            "Login",
            "Compute"
          ],
          "description": "The type of Slurm node for the instance group. Valid values are Controller, Worker, and Login."
        },
        "PartitionNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of Slurm partition names that the instance group belongs to."
        }
      },
      "required": [
        "NodeType"
      ]
    },
    "ClusterSpotOptions": {
      "type": "object",
      "properties": {}
    },
    "ClusterTieredStorageConfig": {
      "type": "object",
      "properties": {
        "Mode": {
          "type": "string",
          "enum": [
            "Enable",
            "Disable"
          ],
          "description": "Specifies whether managed tier checkpointing is enabled or disabled for the HyperPod cluster. When set to Enable, the system installs a memory management daemon that provides disaggregated memory as a service for checkpoint storage. When set to Disable, the feature is turned off and the memory management daemon is removed from the cluster."
        },
        "InstanceMemoryAllocationPercentage": {
          "type": "integer",
          "description": "The percentage (int) of cluster memory to allocate for checkpointing."
        }
      },
      "required": [
        "Mode"
      ]
    },
    "DeploymentConfiguration": {
      "type": "object",
      "properties": {
        "RollingUpdatePolicy": {
          "$ref": "#/$defs/RollingDeploymentPolicy"
        },
        "WaitIntervalInSeconds": {
          "type": "integer",
          "description": "The duration in seconds that SageMaker waits before updating more instances in the cluster."
        },
        "AutoRollbackConfiguration": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AlarmDetails"
          },
          "description": "An array that contains the alarms that SageMaker monitors to know whether to roll back the AMI update."
        }
      }
    },
    "EnvironmentConfig": {
      "type": "object",
      "properties": {
        "FSxLustreConfig": {
          "$ref": "#/$defs/FSxLustreConfig"
        }
      }
    },
    "FSxLustreConfig": {
      "type": "object",
      "properties": {
        "SizeInGiB": {
          "type": "integer",
          "description": "The storage capacity of the Amazon FSx for Lustre file system, specified in gibibytes (GiB)."
        },
        "PerUnitStorageThroughput": {
          "type": "integer",
          "description": "The throughput capacity of the Amazon FSx for Lustre file system, measured in MB/s per TiB of storage."
        }
      },
      "required": [
        "SizeInGiB",
        "PerUnitStorageThroughput"
      ]
    },
    "RollingDeploymentPolicy": {
      "type": "object",
      "properties": {
        "MaximumBatchSize": {
          "$ref": "#/$defs/CapacitySizeConfig"
        },
        "RollbackMaximumBatchSize": {
          "$ref": "#/$defs/CapacitySizeConfig"
        }
      },
      "required": [
        "MaximumBatchSize"
      ]
    },
    "ScheduledUpdateConfig": {
      "type": "object",
      "properties": {
        "ScheduleExpression": {
          "type": "string",
          "description": "A cron expression that specifies the schedule that SageMaker follows when updating the AMI."
        },
        "DeploymentConfig": {
          "$ref": "#/$defs/DeploymentConfiguration"
        }
      },
      "required": [
        "ScheduleExpression"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Tag keys must be unique per resource."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field."
        },
        "Subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones."
        }
      },
      "required": [
        "SecurityGroupIds",
        "Subnets"
      ]
    }
  }
}