{
  "$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-queue-request-schema.json",
  "title": "CreateQueueRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-parallel-computing-service-createqueue-api-openapi.yml#/components/schemas/CreateQueueRequest",
  "type": "object",
  "properties": {
    "clusterIdentifier": {
      "type": "string",
      "description": "The name or ID of the cluster for which to create a queue."
    },
    "queueName": {
      "type": "string",
      "description": "A name to identify the queue."
    },
    "computeNodeGroupConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComputeNodeGroupConfiguration"
      },
      "description": "The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups."
    },
    "slurmConfiguration": {
      "$ref": "#/$defs/QueueSlurmConfigurationRequest"
    },
    "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": [
    "clusterIdentifier",
    "queueName"
  ],
  "$defs": {
    "ComputeNodeGroupConfiguration": {
      "type": "object",
      "properties": {
        "computeNodeGroupId": {
          "type": "string",
          "description": "The compute node group ID for the compute node group configuration."
        }
      }
    },
    "QueueSlurmConfigurationRequest": {
      "type": "object",
      "properties": {
        "slurmCustomSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SlurmCustomSetting"
          },
          "description": "Additional Slurm-specific configuration that directly maps to Slurm settings."
        }
      }
    },
    "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"
      ]
    }
  }
}