{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-list-spaces-response-schema.json",
  "title": "ListSpacesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-space-api-openapi.yml#/components/schemas/ListSpacesResponse",
  "type": "object",
  "properties": {
    "Spaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SpaceDetails"
      },
      "description": "The list of spaces."
    },
    "NextToken": {
      "type": "string",
      "description": "If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results."
    }
  },
  "$defs": {
    "EbsStorageSettings": {
      "type": "object",
      "properties": {
        "EbsVolumeSizeInGb": {
          "type": "integer",
          "description": "The size of an EBS storage volume for a space."
        }
      },
      "required": [
        "EbsVolumeSizeInGb"
      ]
    },
    "OwnershipSettingsSummary": {
      "type": "object",
      "properties": {
        "OwnerUserProfileName": {
          "type": "string",
          "description": "The user profile who is the owner of the space."
        }
      }
    },
    "SpaceDetails": {
      "type": "object",
      "properties": {
        "DomainId": {
          "type": "string",
          "description": "The ID of the associated domain."
        },
        "SpaceName": {
          "type": "string",
          "description": "The name of the space."
        },
        "Status": {
          "type": "string",
          "enum": [
            "Deleting",
            "Failed",
            "InService",
            "Pending",
            "Updating",
            "Update_Failed",
            "Delete_Failed"
          ],
          "description": "The status."
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The creation time."
        },
        "LastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last modified time."
        },
        "SpaceSettingsSummary": {
          "$ref": "#/$defs/SpaceSettingsSummary"
        },
        "SpaceSharingSettingsSummary": {
          "$ref": "#/$defs/SpaceSharingSettingsSummary"
        },
        "OwnershipSettingsSummary": {
          "$ref": "#/$defs/OwnershipSettingsSummary"
        },
        "SpaceDisplayName": {
          "type": "string",
          "description": "The name of the space that appears in the Studio UI."
        }
      }
    },
    "SpaceSettingsSummary": {
      "type": "object",
      "properties": {
        "AppType": {
          "type": "string",
          "enum": [
            "JupyterServer",
            "KernelGateway",
            "DetailedProfiler",
            "TensorBoard",
            "CodeEditor",
            "JupyterLab",
            "RStudioServerPro",
            "RSessionGateway",
            "Canvas"
          ],
          "description": "The type of app created within the space."
        },
        "RemoteAccess": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "A setting that enables or disables remote access for a SageMaker space. When enabled, this allows you to connect to the remote space from your local IDE."
        },
        "SpaceStorageSettings": {
          "$ref": "#/$defs/SpaceStorageSettings"
        }
      }
    },
    "SpaceSharingSettingsSummary": {
      "type": "object",
      "properties": {
        "SharingType": {
          "type": "string",
          "enum": [
            "Private",
            "Shared"
          ],
          "description": "Specifies the sharing type of the space."
        }
      }
    },
    "SpaceStorageSettings": {
      "type": "object",
      "properties": {
        "EbsStorageSettings": {
          "$ref": "#/$defs/EbsStorageSettings"
        }
      }
    }
  }
}