{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-parallel-computing-service/json-schema/amazon-parallel-computing-service-update-queue-request-schema.json",
  "title": "UpdateQueueRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-parallel-computing-service-updatequeue-api-openapi.yml#/components/schemas/UpdateQueueRequest",
  "type": "object",
  "properties": {
    "clusterIdentifier": {
      "type": "string",
      "description": "The name or ID of the cluster of the queue."
    },
    "queueIdentifier": {
      "type": "string",
      "description": "The name or ID of 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/UpdateQueueSlurmConfigurationRequest"
    },
    "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."
    }
  },
  "required": [
    "clusterIdentifier",
    "queueIdentifier"
  ],
  "$defs": {
    "ComputeNodeGroupConfiguration": {
      "type": "object",
      "properties": {
        "computeNodeGroupId": {
          "type": "string",
          "description": "The compute node group ID for the compute node group configuration."
        }
      }
    },
    "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"
      ]
    },
    "UpdateQueueSlurmConfigurationRequest": {
      "type": "object",
      "properties": {
        "slurmCustomSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SlurmCustomSetting"
          },
          "description": "Additional Slurm-specific configuration that directly maps to Slurm settings."
        }
      }
    }
  }
}