Amazon EMR Virtual Clusters API

The Virtual Clusters API from Amazon EMR — 2 operation(s) for virtual clusters.

GitHub OpenAPI

Operations 5

POST /virtualclusters Create Virtual Cluster #
GET /virtualclusters List Virtual Clusters #
DELETE /virtualclusters/{id} Delete Virtual Cluster #
GET /virtualclusters/{id} Describe Virtual Cluster #
PATCH /virtualclusters/{id} Update Virtual Cluster #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-emr:amazon-emr-virtual-clusters-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-emr-virtual-clusters-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon EMR Virtual Clusters API
  version: '2009-03-31'
  description: Generated from AWS's published Smithy model for Amazon EMR. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://emr-containers.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /virtualclusters:
    post:
      operationId: CreateVirtualCluster
      summary: Create Virtual Cluster
      description: Creates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update,
        describe, list and delete virtual clusters. They do not consume any additional resource in your system. A single virtual
        cluster maps to a single Kubernetes namespace. Given this relationship, you can model virtual clusters the same way
        you model Kubernetes namespaces to meet your requirements.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateVirtualClusterResponse'
        '429':
          description: EKSRequestThrottledException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EKSRequestThrottledException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmrContainersInternalServerException'
        '400':
          description: ResourceNotFoundException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The specified name of the virtual cluster.
                containerProvider:
                  $ref: '#/components/schemas/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: '#/components/schemas/SchedulerConfiguration'
              required:
              - name
              - containerProvider
              - clientToken
      tags:
      - Virtual Clusters
    get:
      operationId: ListVirtualClusters
      summary: List Virtual Clusters
      description: Lists information about the specified virtual cluster. Virtual cluster is a managed entity on Amazon EMR
        on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional resource
        in your system. A single virtual cluster maps to a single Kubernetes namespace. Given this relationship, you can model
        virtual clusters the same way you model Kubernetes namespaces to meet your requirements.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListVirtualClustersResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmrContainersInternalServerException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: containerProviderId
        in: query
        schema:
          type: string
        description: The container provider ID of the virtual cluster.
      - name: containerProviderType
        in: query
        schema:
          type: string
          enum:
          - EKS
        description: The container provider type of the virtual cluster. Amazon EKS is the only supported type as of now.
      - name: createdAfter
        in: query
        schema:
          type: string
          format: date-time
        description: The date and time after which the virtual clusters are created.
      - name: createdBefore
        in: query
        schema:
          type: string
          format: date-time
        description: The date and time before which the virtual clusters are created.
      - name: states
        in: query
        schema:
          type: array
          items:
            type: string
            enum:
            - RUNNING
            - TERMINATING
            - TERMINATED
            - ARRESTED
        description: The states of the requested virtual clusters.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of virtual clusters that can be listed.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token for the next set of virtual clusters to return.
      - name: eksAccessEntryIntegrated
        in: query
        schema:
          type: boolean
        description: Optional Boolean that specifies whether the operation should return the virtual clusters that have the
          access entry integration enabled or disabled. If not specified, the operation returns all applicable virtual clusters.
      tags:
      - Virtual Clusters
  /virtualclusters/{id}:
    delete:
      operationId: DeleteVirtualCluster
      summary: Delete Virtual Cluster
      description: Deletes a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update,
        describe, list and delete virtual clusters. They do not consume any additional resource in your system. A single virtual
        cluster maps to a single Kubernetes namespace. Given this relationship, you can model virtual clusters the same way
        you model Kubernetes namespaces to meet your requirements.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteVirtualClusterResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmrContainersInternalServerException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The ID of the virtual cluster that will be deleted.
      tags:
      - Virtual Clusters
    get:
      operationId: DescribeVirtualCluster
      summary: Describe Virtual Cluster
      description: Displays detailed information about a specified virtual cluster. Virtual cluster is a managed entity on
        Amazon EMR on EKS. You can create, update, describe, list and delete virtual clusters. They do not consume any additional
        resource in your system. A single virtual cluster maps to a single Kubernetes namespace. Given this relationship,
        you can model virtual clusters the same way you model Kubernetes namespaces to meet your requirements.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeVirtualClusterResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmrContainersInternalServerException'
        '400':
          description: ResourceNotFoundException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The ID of the virtual cluster that will be described.
      tags:
      - Virtual Clusters
    patch:
      operationId: UpdateVirtualCluster
      summary: Update Virtual Cluster
      description: Updates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, update,
        describe, list and delete virtual clusters. They do not consume any additional resource in your system. A single virtual
        cluster maps to a single Kubernetes namespace. Given this relationship, you can model virtual clusters the same way
        you model Kubernetes namespaces to meet your requirements.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateVirtualClusterResponse'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmrContainersInternalServerException'
        '400':
          description: ResourceNotFoundException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The ID of the virtual cluster to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                schedulerConfiguration:
                  $ref: '#/components/schemas/SchedulerConfiguration'
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier that you provide to ensure that the operation completes
                    no more than one time. If this token matches a previous request, the service ignores the request, but
                    does not return an error.
              required:
              - clientToken
      tags:
      - Virtual Clusters
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: emr-containers
  schemas:
    ContainerInfo:
      type: object
      properties:
        eksInfo:
          $ref: '#/components/schemas/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: '#/components/schemas/ContainerInfo'
      required:
      - type
      - id
    CreateVirtualClusterResponse:
      type: object
      properties:
        id:
          type: string
          description: This output contains the virtual cluster ID.
        name:
          type: string
          description: This output contains the name of the virtual cluster.
        arn:
          type: string
          description: This output contains the ARN of virtual cluster.
    DeleteVirtualClusterResponse:
      type: object
      properties:
        id:
          type: string
          description: This output contains the ID of the virtual cluster that will be deleted.
    DescribeVirtualClusterResponse:
      type: object
      properties:
        virtualCluster:
          $ref: '#/components/schemas/VirtualCluster'
    EKSRequestThrottledException:
      type: object
      properties:
        message:
          type: string
    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.
    EmrContainersInternalServerException:
      type: object
      properties:
        message:
          type: string
    ListVirtualClustersResponse:
      type: object
      properties:
        virtualClusters:
          type: array
          items:
            $ref: '#/components/schemas/VirtualCluster'
          description: This output lists the specified virtual clusters.
        nextToken:
          type: string
          description: This output displays the token for the next set of virtual clusters.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    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.
    SchedulerStatus:
      type: object
      properties:
        currentInQueueJobRuns:
          type: integer
          description: The number of job runs currently waiting in the queue (PENDING or SUBMITTED) for the virtual cluster.
        currentConcurrentJobRuns:
          type: integer
          description: The number of job runs currently in the RUNNING state for the virtual cluster.
    UpdateVirtualClusterResponse:
      type: object
      properties:
        virtualCluster:
          $ref: '#/components/schemas/VirtualCluster'
    ValidationException:
      type: object
      properties:
        message:
          type: string
    VirtualCluster:
      type: object
      properties:
        id:
          type: string
          description: The ID of the virtual cluster.
        name:
          type: string
          description: The name of the virtual cluster.
        arn:
          type: string
          description: The ARN of the virtual cluster.
        state:
          type: string
          enum:
          - RUNNING
          - TERMINATING
          - TERMINATED
          - ARRESTED
          description: The state of the virtual cluster.
        containerProvider:
          $ref: '#/components/schemas/ContainerProvider'
        createdAt:
          type: string
          format: date-time
          description: The date and time when the virtual cluster is created.
        tags:
          type: object
          additionalProperties:
            type: string
          description: The assigned tags of the virtual cluster.
        securityConfigurationId:
          type: string
          description: The ID of the security configuration.
        sessionEnabled:
          type: boolean
          description: Specifies whether the virtual cluster has session support enabled.
        schedulerConfiguration:
          $ref: '#/components/schemas/SchedulerConfiguration'
        schedulerStatus:
          $ref: '#/components/schemas/SchedulerStatus'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/emr-containers/service/2020-10-01/emr-containers-2020-10-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)