{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-parallel-computing-service/json-schema/amazon-parallel-computing-service-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-parallel-computing-service-createcluster-api-openapi.yml#/components/schemas/CreateClusterRequest",
  "type": "object",
  "properties": {
    "clusterName": {
      "type": "string",
      "description": "A name to identify the cluster. Example: MyCluster"
    },
    "scheduler": {
      "$ref": "#/$defs/SchedulerRequest"
    },
    "size": {
      "type": "string",
      "enum": [
        "SMALL",
        "MEDIUM",
        "LARGE"
      ],
      "description": "A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued). SMALL: 32 compute nodes and 256 jobs MEDIUM: 512 compute nodes and 8192 jobs LARGE: 2048 compute nodes and 16,384 jobs"
    },
    "networking": {
      "$ref": "#/$defs/NetworkingRequest"
    },
    "slurmConfiguration": {
      "$ref": "#/$defs/ClusterSlurmConfigurationRequest"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate one for you."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string."
    }
  },
  "required": [
    "clusterName",
    "scheduler",
    "size",
    "networking"
  ],
  "$defs": {
    "AccountingRequest": {
      "type": "object",
      "properties": {
        "defaultPurgeTimeInDays": {
          "type": "integer",
          "description": "The default value for all purge settings for slurmdbd.conf. For more information, see the slurmdbd.conf documentation at SchedMD. The default value for defaultPurgeTimeInDays is -1. A value of -1 means there is no purge time and records persist as long as the cluster exists. 0 isn't a valid value."
        },
        "mode": {
          "type": "string",
          "enum": [
            "STANDARD",
            "NONE"
          ],
          "description": "The default value for mode is NONE. A value of STANDARD means Slurm accounting is enabled."
        }
      },
      "required": [
        "mode"
      ]
    },
    "CgroupCustomSetting": {
      "type": "object",
      "properties": {
        "parameterName": {
          "type": "string",
          "description": "PCS supports custom Cgroup settings for clusters. For more information, see Configuring custom Cgroup settings in PCS in the PCS User Guide."
        },
        "parameterValue": {
          "type": "string",
          "description": "The values for the configured Cgroup settings."
        }
      },
      "required": [
        "parameterName",
        "parameterValue"
      ]
    },
    "ClusterSlurmConfigurationRequest": {
      "type": "object",
      "properties": {
        "scaleDownIdleTimeInSeconds": {
          "type": "integer",
          "description": "The time (in seconds) before an idle node is scaled down. Default: 600"
        },
        "slurmCustomSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SlurmCustomSetting"
          },
          "description": "Additional Slurm-specific configuration that directly maps to Slurm settings."
        },
        "slurmdbdCustomSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SlurmdbdCustomSetting"
          },
          "description": "Additional SlurmDBD-specific configuration that directly maps to SlurmDBD settings."
        },
        "cgroupCustomSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CgroupCustomSetting"
          },
          "description": "Additional Cgroup-specific configuration that directly maps to Cgroup settings."
        },
        "accounting": {
          "$ref": "#/$defs/AccountingRequest"
        },
        "slurmRest": {
          "$ref": "#/$defs/SlurmRestRequest"
        }
      }
    },
    "NetworkingRequest": {
      "type": "object",
      "properties": {
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of subnet IDs where PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and PCS resources. Subnet IDs have the form subnet-0123456789abcdef0. Subnets can't be in Outposts, Wavelength or an Amazon Web Services Local Zone. PCS currently supports only 1 subnet in this list."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets."
        },
        "networkType": {
          "type": "string",
          "enum": [
            "IPV4",
            "IPV6"
          ],
          "description": "The IP address version the cluster uses. The default is IPV4."
        }
      }
    },
    "SchedulerRequest": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "SLURM"
          ],
          "description": "The software PCS uses to manage cluster scaling and job scheduling."
        },
        "version": {
          "type": "string",
          "description": "The version of the specified scheduling software that PCS uses to manage cluster scaling and job scheduling. For more information, see Slurm versions in PCS in the PCS User Guide. Valid Values: 24.11 | 25.05 | 25.11 | 26.05"
        }
      },
      "required": [
        "type",
        "version"
      ]
    },
    "SlurmCustomSetting": {
      "type": "object",
      "properties": {
        "parameterName": {
          "type": "string",
          "description": "PCS supports custom Slurm settings for clusters, compute node groups, and queues. For more information, see Configuring custom Slurm settings in PCS in the PCS User Guide."
        },
        "parameterValue": {
          "type": "string",
          "description": "The values for the configured Slurm settings."
        }
      },
      "required": [
        "parameterName",
        "parameterValue"
      ]
    },
    "SlurmRestRequest": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "STANDARD",
            "NONE"
          ],
          "description": "The default value for mode is NONE. A value of STANDARD means the Slurm REST API is enabled."
        }
      },
      "required": [
        "mode"
      ]
    },
    "SlurmdbdCustomSetting": {
      "type": "object",
      "properties": {
        "parameterName": {
          "type": "string",
          "description": "PCS supports custom SlurmDBD settings for clusters. For more information, see Configuring custom SlurmDBD settings in PCS in the PCS User Guide."
        },
        "parameterValue": {
          "type": "string",
          "description": "The values for the configured SlurmDBD settings."
        }
      },
      "required": [
        "parameterName",
        "parameterValue"
      ]
    }
  }
}