{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-get-session-response-schema.json",
  "title": "GetSessionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-sessions-api-openapi.yml#/components/schemas/GetSessionResponse",
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "The session ID."
    },
    "fleetId": {
      "type": "string",
      "description": "The fleet ID for the session."
    },
    "workerId": {
      "type": "string",
      "description": "The worker ID for the session."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource started running."
    },
    "lifecycleStatus": {
      "type": "string",
      "enum": [
        "STARTED",
        "UPDATE_IN_PROGRESS",
        "UPDATE_SUCCEEDED",
        "UPDATE_FAILED",
        "ENDED"
      ],
      "description": "The life cycle status of the session."
    },
    "endedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource ended running."
    },
    "targetLifecycleStatus": {
      "type": "string",
      "enum": [
        "ENDED"
      ],
      "description": "The life cycle status with which the session started."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the resource was updated."
    },
    "updatedBy": {
      "type": "string",
      "description": "The user or system that updated this resource."
    },
    "log": {
      "$ref": "#/$defs/LogConfiguration"
    },
    "hostProperties": {
      "$ref": "#/$defs/HostPropertiesResponse"
    },
    "workerLog": {
      "$ref": "#/$defs/LogConfiguration"
    }
  },
  "required": [
    "sessionId",
    "fleetId",
    "workerId",
    "startedAt",
    "lifecycleStatus",
    "log"
  ],
  "$defs": {
    "HostPropertiesResponse": {
      "type": "object",
      "properties": {
        "ipAddresses": {
          "$ref": "#/$defs/IpAddresses"
        },
        "hostName": {
          "type": "string",
          "description": "The host name."
        },
        "ec2InstanceArn": {
          "type": "string",
          "description": "The ARN of the host EC2 instance."
        },
        "ec2InstanceType": {
          "type": "string",
          "description": "The instance type of the host EC2 instance."
        }
      }
    },
    "IpAddresses": {
      "type": "object",
      "properties": {
        "ipV4Addresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IpV4 address of the network."
        },
        "ipV6Addresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IpV6 address for the network and node component."
        }
      }
    },
    "LogConfiguration": {
      "type": "object",
      "properties": {
        "logDriver": {
          "type": "string",
          "description": "The log drivers for worker related logs."
        },
        "options": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The options for a log driver."
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The parameters for the log configuration."
        },
        "error": {
          "type": "string",
          "description": "The log configuration error details."
        }
      },
      "required": [
        "logDriver"
      ]
    }
  }
}