{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-get-session-action-response-schema.json",
  "title": "GetSessionActionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-operations-api-openapi.yml#/components/schemas/GetSessionActionResponse",
  "type": "object",
  "properties": {
    "sessionActionId": {
      "type": "string",
      "description": "The session action ID."
    },
    "status": {
      "type": "string",
      "enum": [
        "ASSIGNED",
        "RUNNING",
        "CANCELING",
        "SUCCEEDED",
        "FAILED",
        "INTERRUPTED",
        "CANCELED",
        "NEVER_ATTEMPTED",
        "SCHEDULED",
        "RECLAIMING",
        "RECLAIMED"
      ],
      "description": "The status of the session action."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource started running."
    },
    "endedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource ended running."
    },
    "workerUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The Linux timestamp of the date and time the session action was last updated."
    },
    "progressPercent": {
      "type": "number",
      "description": "The percentage completed for a session action."
    },
    "manifests": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaskRunManifestPropertiesResponse"
      },
      "description": "The list of manifest properties that describe file attachments for the task run."
    },
    "sessionId": {
      "type": "string",
      "description": "The session ID for the session action."
    },
    "processExitCode": {
      "type": "integer",
      "description": "The process exit code. The default Deadline Cloud worker agent converts unsigned 32-bit exit codes to signed 32-bit exit codes."
    },
    "progressMessage": {
      "type": "string",
      "description": "The message that communicates the progress of the session action."
    },
    "acquiredLimits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AcquiredLimit"
      },
      "description": "The limits and their amounts acquired during a session action. If no limits were acquired during the session, this field isn't returned."
    },
    "definition": {
      "$ref": "#/$defs/SessionActionDefinition"
    }
  },
  "required": [
    "sessionActionId",
    "status",
    "sessionId",
    "definition"
  ],
  "$defs": {
    "AcquiredLimit": {
      "type": "object",
      "properties": {
        "limitId": {
          "type": "string",
          "description": "The unique identifier of the limit."
        },
        "count": {
          "type": "integer",
          "description": "The number of limit resources used."
        }
      },
      "required": [
        "limitId",
        "count"
      ]
    },
    "EnvironmentEnterSessionActionDefinition": {
      "type": "object",
      "properties": {
        "environmentId": {
          "type": "string",
          "description": "The environment ID."
        }
      },
      "required": [
        "environmentId"
      ]
    },
    "EnvironmentExitSessionActionDefinition": {
      "type": "object",
      "properties": {
        "environmentId": {
          "type": "string",
          "description": "The environment ID."
        }
      },
      "required": [
        "environmentId"
      ]
    },
    "SessionActionDefinition": {
      "type": "object",
      "properties": {
        "envEnter": {
          "$ref": "#/$defs/EnvironmentEnterSessionActionDefinition"
        },
        "envExit": {
          "$ref": "#/$defs/EnvironmentExitSessionActionDefinition"
        },
        "taskRun": {
          "$ref": "#/$defs/TaskRunSessionActionDefinition"
        },
        "syncInputJobAttachments": {
          "$ref": "#/$defs/SyncInputJobAttachmentsSessionActionDefinition"
        }
      },
      "description": "Exactly one member is set."
    },
    "SyncInputJobAttachmentsSessionActionDefinition": {
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string",
          "description": "The step ID for the sync input job attachments session action."
        }
      }
    },
    "TaskParameterValue": {
      "type": "object",
      "properties": {
        "int": {
          "type": "string",
          "description": "A signed integer represented as a string."
        },
        "float": {
          "type": "string",
          "description": "A double precision IEEE-754 floating point number represented as a string."
        },
        "string": {
          "type": "string",
          "description": "A UTF-8 string."
        },
        "path": {
          "type": "string",
          "description": "A file system path represented as a string."
        },
        "chunkInt": {
          "type": "string",
          "description": "A range (for example 1-10) or selection of specific (for example 1,3,7,8,10) integers represented as a string."
        }
      },
      "description": "Exactly one member is set."
    },
    "TaskRunManifestPropertiesResponse": {
      "type": "object",
      "properties": {
        "outputManifestPath": {
          "type": "string",
          "description": "The manifest file path."
        },
        "outputManifestHash": {
          "type": "string",
          "description": "The hash value of the file."
        }
      }
    },
    "TaskRunSessionActionDefinition": {
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string",
          "description": "The task ID."
        },
        "stepId": {
          "type": "string",
          "description": "The step ID."
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/TaskParameterValue"
          },
          "description": "The task parameters."
        }
      },
      "required": [
        "stepId",
        "parameters"
      ]
    }
  }
}