AWS Glue AWS Glue #X Amz Target=AWSGlue.CreateSession API

The AWS Glue #X Amz Target=AWSGlue.CreateSession API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.createsession api.

GitHub OpenAPI

Operations 1

POST /#CreateSession Create Session #

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/aws-glue:aws-glue-aws-glue-x-amz-target-awsglue-createsession-api-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

aws-glue-aws-glue-x-amz-target-awsglue-createsession-api-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Glue Aws Glue X Amz Target Awsglue Createsession Api API
  version: '2017-03-31'
  description: Generated from AWS's published Smithy model for AWS Glue. 1 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://glue.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateSession:
    post:
      operationId: CreateSession
      summary: Create Session
      description: Creates a new session.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateSessionResponse'
        '400':
          description: AccessDeniedException; AlreadyExistsException; IdempotentParameterMismatchException; InvalidInputException;
            OperationNotSupportedException; OperationTimeoutException; ResourceNumberLimitExceededException; ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSGlue.CreateSession
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateSessionRequest'
      tags:
      - Aws Glue X Amz Target Awsglue Createsession Api
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: glue
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    ConnectionsList:
      type: object
      properties:
        Connections:
          type: array
          items:
            type: string
          description: A list of connections used by the job.
    CreateSessionRequest:
      type: object
      properties:
        Id:
          type: string
          description: The ID of the session request.
        Description:
          type: string
          description: The description of the session.
        Role:
          type: string
          description: The IAM Role ARN
        Command:
          $ref: '#/components/schemas/SessionCommand'
        Timeout:
          type: integer
          description: The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes).
            Consult the documentation for other job types.
        IdleTimeout:
          type: integer
          description: The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout.
            Consult the documentation for other job types.
        DefaultArguments:
          type: object
          additionalProperties:
            type: string
          description: A map array of key-value pairs. Max is 75 pairs.
        Connections:
          $ref: '#/components/schemas/ConnectionsList'
        MaxCapacity:
          type: number
          description: The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a
            relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
        NumberOfWorkers:
          type: integer
          description: The number of workers of a defined WorkerType to use for the session.
        WorkerType:
          type: string
          enum:
          - Standard
          - G.1X
          - G.2X
          - G.4X
          - G.8X
          - G.025X
          - Z.2X
          - G.12X
          - G.16X
          - R.1X
          - R.2X
          - R.4X
          - R.8X
          description: The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X,
            G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray notebooks. For the
            G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor
            per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers
            a scalable and cost effective way to run most jobs. For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs,
            32 GB of memory) with 138GB disk, and provides 1 e
        SecurityConfiguration:
          type: string
          description: The name of the SecurityConfiguration structure to be used with the session
        GlueVersion:
          type: string
          description: The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion
            must be greater than 2.0.
        Tags:
          type: object
          additionalProperties:
            type: string
          description: The map of key value pairs (tags) belonging to the session.
        RequestOrigin:
          type: string
          description: The origin of the request.
        SessionType:
          type: string
          enum:
          - LIVY
          - SPARK_CONNECT
          description: The type of session to create.
      required:
      - Id
      - Role
      - Command
    CreateSessionResponse:
      type: object
      properties:
        Session:
          $ref: '#/components/schemas/Session'
    InternalServiceException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    Session:
      type: object
      properties:
        Id:
          type: string
          description: The ID of the session.
        CreatedOn:
          type: string
          format: date-time
          description: The time and date when the session was created.
        Status:
          type: string
          enum:
          - PROVISIONING
          - READY
          - FAILED
          - TIMEOUT
          - STOPPING
          - STOPPED
          description: The session status.
        ErrorMessage:
          type: string
          description: The error message displayed during the session.
        Description:
          type: string
          description: The description of the session.
        Role:
          type: string
          description: The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
        Command:
          $ref: '#/components/schemas/SessionCommand'
        DefaultArguments:
          type: object
          additionalProperties:
            type: string
          description: A map array of key-value pairs. Max is 75 pairs.
        Connections:
          $ref: '#/components/schemas/ConnectionsList'
        Progress:
          type: number
          description: The code execution progress of the session.
        MaxCapacity:
          type: number
          description: The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a
            relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
        SecurityConfiguration:
          type: string
          description: The name of the SecurityConfiguration structure to be used with the session.
        GlueVersion:
          type: string
          description: The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion
            must be greater than 2.0.
        NumberOfWorkers:
          type: integer
          description: The number of workers of a defined WorkerType to use for the session.
        WorkerType:
          type: string
          enum:
          - Standard
          - G.1X
          - G.2X
          - G.4X
          - G.8X
          - G.025X
          - Z.2X
          - G.12X
          - G.16X
          - R.1X
          - R.2X
          - R.4X
          - R.8X
          description: The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X, G.2X,
            G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark sessions. Accepts the value Z.2X for Ray sessions.
            The G.12X, G.16X, and R.1X through R.8X worker types are available only for Glue version 4.0 or later Spark ETL
            jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark
            jobs in the developer guide.
        CompletedOn:
          type: string
          format: date-time
          description: The date and time that this session is completed.
        ExecutionTime:
          type: number
          description: The total time the session ran for.
        DPUSeconds:
          type: number
          description: 'The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).'
        IdleTimeout:
          type: integer
          description: The number of minutes when idle before the session times out.
        ProfileName:
          type: string
          description: The name of an Glue usage profile associated with the session.
        SessionType:
          type: string
          enum:
          - LIVY
          - SPARK_CONNECT
          description: The type of the session.
    SessionCommand:
      type: object
      properties:
        Name:
          type: string
          description: Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.
        PythonVersion:
          type: string
          description: Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/glue/service/2017-03-31/glue-2017-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)