{
  "$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-response-schema.json",
  "title": "CreateClusterResponse",
  "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/CreateClusterResponse",
  "type": "object",
  "properties": {
    "cluster": {
      "$ref": "#/$defs/Cluster"
    }
  },
  "$defs": {
    "Accounting": {
      "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"
      ]
    },
    "Cluster": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name that identifies the cluster."
        },
        "id": {
          "type": "string",
          "description": "The generated unique ID of the cluster."
        },
        "arn": {
          "type": "string",
          "description": "The unique Amazon Resource Name (ARN) of the cluster."
        },
        "status": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "CREATE_FAILED",
            "DELETE_FAILED",
            "UPDATE_FAILED",
            "SUSPENDING",
            "SUSPENDED",
            "RESUMING"
          ],
          "description": "The provisioning status of the cluster. The provisioning status doesn't indicate the overall health of the cluster. The resource enters the SUSPENDING and SUSPENDED states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status is SUSPENDED. For more information, see Frequently asked questions about Slurm versions in PCS in the PCS User Guide."
        },
        "createdAt": {
          "type": "string",
          "description": "The date and time the resource was created."
        },
        "modifiedAt": {
          "type": "string",
          "description": "The date and time the resource was modified."
        },
        "scheduler": {
          "$ref": "#/$defs/Scheduler"
        },
        "size": {
          "type": "string",
          "enum": [
            "SMALL",
            "MEDIUM",
            "LARGE"
          ],
          "description": "The size of the cluster. SMALL: 32 compute nodes and 256 jobs MEDIUM: 512 compute nodes and 8192 jobs LARGE: 2048 compute nodes and 16,384 jobs"
        },
        "slurmConfiguration": {
          "$ref": "#/$defs/ClusterSlurmConfiguration"
        },
        "networking": {
          "$ref": "#/$defs/Networking"
        },
        "endpoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Endpoint"
          },
          "description": "The list of endpoints available for interaction with the scheduler."
        },
        "errorInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorInfo"
          },
          "description": "The list of errors that occurred during cluster provisioning."
        }
      },
      "required": [
        "name",
        "id",
        "arn",
        "status",
        "createdAt",
        "modifiedAt",
        "scheduler",
        "size",
        "networking"
      ]
    },
    "ClusterSlurmConfiguration": {
      "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."
        },
        "authKey": {
          "$ref": "#/$defs/SlurmAuthKey"
        },
        "jwtAuth": {
          "$ref": "#/$defs/JwtAuth"
        },
        "accounting": {
          "$ref": "#/$defs/Accounting"
        },
        "slurmRest": {
          "$ref": "#/$defs/SlurmRest"
        }
      }
    },
    "Endpoint": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "SLURMCTLD",
            "SLURMDBD",
            "SLURMRESTD"
          ],
          "description": "Indicates the type of endpoint running at the specific IP address."
        },
        "privateIpAddress": {
          "type": "string",
          "description": "For clusters that use IPv4, this is the endpoint's private IP address. Example: 10.1.2.3 For clusters configured to use IPv6, this is an empty string."
        },
        "publicIpAddress": {
          "type": "string",
          "description": "The endpoint's public IP address. Example: 192.0.2.1"
        },
        "ipv6Address": {
          "type": "string",
          "description": "The endpoint's IPv6 address. Example: 2001:db8::1"
        },
        "port": {
          "type": "string",
          "description": "The endpoint's connection port number. Example: 1234"
        }
      },
      "required": [
        "type",
        "privateIpAddress",
        "port"
      ]
    },
    "ErrorInfo": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The short-form error code."
        },
        "message": {
          "type": "string",
          "description": "The detailed error information."
        }
      }
    },
    "JwtAuth": {
      "type": "object",
      "properties": {
        "jwtKey": {
          "$ref": "#/$defs/JwtKey"
        }
      }
    },
    "JwtKey": {
      "type": "object",
      "properties": {
        "secretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret containing the JWT key."
        },
        "secretVersion": {
          "type": "string",
          "description": "The version of the Amazon Web Services Secrets Manager secret containing the JWT key."
        }
      },
      "required": [
        "secretArn",
        "secretVersion"
      ]
    },
    "Networking": {
      "type": "object",
      "properties": {
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID of the subnet where PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and PCS resources. The subnet must have an available IP address, cannot reside in Outposts, Wavelength, or an Amazon Web Services Local Zone. Example: subnet-abcd1234"
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets. The following rules are required: Inbound rule 1 Protocol: All Ports: All Source: Self Outbound rule 1 Protocol: All Ports: All Destination: 0.0.0.0/0 (IPv4) or ::/0 (IPv6) Outbound rule 2 Protocol: All Ports: All Destination: Self"
        },
        "networkType": {
          "type": "string",
          "enum": [
            "IPV4",
            "IPV6"
          ],
          "description": "The IP address version the cluster uses. The default is IPV4."
        }
      }
    },
    "Scheduler": {
      "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. You can update this version using the UpdateCluster API action. For more information, see Updating the scheduler version on a cluster and Slurm versions in PCS in the PCS User Guide. Valid Values: 23.11 | 24.05 | 24.11 | 25.05 | 25.11 | 26.05"
        }
      },
      "required": [
        "type",
        "version"
      ]
    },
    "SlurmAuthKey": {
      "type": "object",
      "properties": {
        "secretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the shared Slurm key."
        },
        "secretVersion": {
          "type": "string",
          "description": "The version of the shared Slurm key."
        }
      },
      "required": [
        "secretArn",
        "secretVersion"
      ]
    },
    "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"
      ]
    },
    "SlurmRest": {
      "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"
      ]
    }
  }
}