{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-create-guisession-access-details-result-schema.json",
  "title": "CreateGUISessionAccessDetailsResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-account-api-openapi.yml#/components/schemas/CreateGUISessionAccessDetailsResult",
  "type": "object",
  "properties": {
    "resourceName": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceName"
        }
      ],
      "description": "The resource name."
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/Status"
        }
      ],
      "description": "The status of the operation."
    },
    "percentageComplete": {
      "allOf": [
        {
          "$ref": "#/$defs/integer"
        }
      ],
      "description": "The percentage of completion for the operation."
    },
    "failureReason": {
      "allOf": [
        {
          "$ref": "#/$defs/string"
        }
      ],
      "description": "The reason the operation failed."
    },
    "sessions": {
      "allOf": [
        {
          "$ref": "#/$defs/Sessions"
        }
      ],
      "description": "Returns information about the specified Amazon DCV GUI session."
    }
  },
  "$defs": {
    "NonEmptyString": {
      "type": "string",
      "pattern": "\\S"
    },
    "ResourceName": {
      "type": "string",
      "pattern": "^\\w[\\w\\-]*\\w$"
    },
    "SensitiveNonEmptyString": {
      "type": "string",
      "pattern": "\\S"
    },
    "Session": {
      "type": "object",
      "properties": {
        "name": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The session name."
        },
        "url": {
          "allOf": [
            {
              "$ref": "#/$defs/SensitiveNonEmptyString"
            }
          ],
          "description": "The session URL."
        },
        "isPrimary": {
          "allOf": [
            {
              "$ref": "#/$defs/boolean"
            }
          ],
          "description": "When true, this Boolean value indicates the primary session for the specified resource."
        }
      },
      "description": "Describes a web-based, remote graphical user interface (GUI), Amazon DCV session. The session is used to access a virtual computer’s operating system or application."
    },
    "Sessions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Session"
      }
    },
    "Status": {
      "type": "string",
      "enum": [
        "startExpired",
        "notStarted",
        "started",
        "starting",
        "stopped",
        "stopping",
        "settingUpInstance",
        "failedInstanceCreation",
        "failedStartingGUISession",
        "failedStoppingGUISession"
      ]
    },
    "boolean": {
      "type": "boolean"
    },
    "integer": {
      "type": "integer"
    },
    "string": {
      "type": "string"
    }
  }
}