{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-create-virtual-cluster-request-schema.json",
  "title": "CreateVirtualClusterRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-virtualclusters-api-openapi.yml#/components/schemas/CreateVirtualClusterRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The specified name of the virtual cluster."
    },
    "containerProvider": {
      "$ref": "#/$defs/ContainerProvider"
    },
    "clientToken": {
      "type": "string",
      "description": "The client token of the virtual cluster."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags assigned to the virtual cluster."
    },
    "securityConfigurationId": {
      "type": "string",
      "description": "The ID of the security configuration."
    },
    "sessionEnabled": {
      "type": "boolean",
      "description": "Indicates whether the virtual cluster has session support enabled."
    },
    "schedulerConfiguration": {
      "$ref": "#/$defs/SchedulerConfiguration"
    }
  },
  "required": [
    "name",
    "containerProvider",
    "clientToken"
  ],
  "$defs": {
    "ContainerInfo": {
      "type": "object",
      "properties": {
        "eksInfo": {
          "$ref": "#/$defs/EksInfo"
        }
      },
      "description": "Exactly one member is set."
    },
    "ContainerProvider": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EKS"
          ],
          "description": "The type of the container provider. Amazon EKS is the only supported type as of now."
        },
        "id": {
          "type": "string",
          "description": "The ID of the container cluster."
        },
        "info": {
          "$ref": "#/$defs/ContainerInfo"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "EksInfo": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "description": "The namespaces of the Amazon EKS cluster."
        },
        "nodeLabel": {
          "type": "string",
          "description": "The nodeLabel of the nodes where the resources of this virtual cluster can get scheduled. It requires relevant scaling and policy engine addons."
        }
      }
    },
    "SchedulerConfiguration": {
      "type": "object",
      "properties": {
        "maxInQueueJobRuns": {
          "type": "integer",
          "description": "The maximum number of job runs that can be in the PENDING or SUBMITTED state at any time for the virtual cluster. When the queue is full, the service rejects StartJobRun requests with a ValidationException. If you omit this field, the service applies no queue-depth limit."
        },
        "maxConcurrentJobRuns": {
          "type": "integer",
          "description": "The maximum number of job runs that can be in the RUNNING state at any time for the virtual cluster. As running slots free up, queued job runs start automatically. If you omit this field, the service applies no concurrency limit."
        }
      }
    }
  }
}