{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-emr/json-schema/amazon-emr-start-session-request-schema.json",
  "title": "StartSessionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-emr-session-api-openapi.yml#/components/schemas/StartSessionRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The ID of the application on which to start the session."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the successful response without performing the operation again."
    },
    "executionRoleArn": {
      "type": "string",
      "description": "The execution role ARN for the session. Amazon EMR Serverless uses this role to access Amazon Web Services resources on your behalf during session execution."
    },
    "configurationOverrides": {
      "$ref": "#/$defs/SessionConfigurationOverrides"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to assign to the session."
    },
    "idleTimeoutMinutes": {
      "type": "integer",
      "description": "The idle timeout in minutes for the session. After the session remains idle for this duration, Amazon EMR Serverless automatically terminates it."
    },
    "name": {
      "type": "string",
      "description": "The optional name for the session."
    }
  },
  "required": [
    "applicationId",
    "clientToken",
    "executionRoleArn"
  ],
  "$defs": {
    "EmrServerlessConfiguration": {
      "type": "object",
      "properties": {
        "classification": {
          "type": "string",
          "description": "The classification within a configuration."
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A set of properties specified within a configuration classification."
        },
        "configurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmrServerlessConfiguration"
          },
          "description": "A list of additional configurations to apply within a configuration object."
        }
      },
      "required": [
        "classification"
      ]
    },
    "SessionConfigurationOverrides": {
      "type": "object",
      "properties": {
        "runtimeConfiguration": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EmrServerlessConfiguration"
          },
          "description": "The runtime configuration for the session. Contains Spark configuration properties specified at session creation time."
        }
      }
    }
  }
}