{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-get-notebook-output-schema.json",
  "title": "GetNotebookOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-notebooks-api-openapi.yml#/components/schemas/GetNotebookOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The identifier of the notebook."
    },
    "name": {
      "type": "string",
      "description": "The name of the notebook."
    },
    "owningProjectId": {
      "type": "string",
      "description": "The identifier of the project that owns the notebook."
    },
    "domainId": {
      "type": "string",
      "description": "The identifier of the Amazon SageMaker Unified Studio domain."
    },
    "cellOrder": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CellInformation"
      },
      "description": "The ordered list of cells in the notebook."
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "ARCHIVED",
        "SYNC_IN_PROGRESS",
        "SYNC_FAILED"
      ],
      "description": "The status of the notebook."
    },
    "type": {
      "type": "string",
      "enum": [
        "DATA",
        "SQL"
      ],
      "description": "The type of the notebook."
    },
    "description": {
      "type": "string",
      "description": "The description of the notebook."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the notebook was created."
    },
    "createdBy": {
      "type": "string",
      "description": "The identifier of the user who created the notebook."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the notebook was last updated."
    },
    "updatedBy": {
      "type": "string",
      "description": "The identifier of the user who last updated the notebook."
    },
    "lockedBy": {
      "type": "string",
      "description": "The identifier of the user who locked the notebook."
    },
    "lockedAt": {
      "type": "string",
      "description": "The timestamp of when the notebook was locked."
    },
    "lockExpiresAt": {
      "type": "string",
      "description": "The timestamp of when the notebook lock expires."
    },
    "computeId": {
      "type": "string",
      "description": "The identifier of the compute associated with the notebook."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The metadata of the notebook."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The sensitive parameters of the notebook."
    },
    "environmentConfiguration": {
      "$ref": "#/$defs/EnvironmentConfig"
    },
    "error": {
      "$ref": "#/$defs/NotebookError"
    },
    "gitMetadata": {
      "$ref": "#/$defs/GitMetadata"
    }
  },
  "required": [
    "id",
    "name",
    "owningProjectId",
    "domainId",
    "cellOrder",
    "status"
  ],
  "$defs": {
    "CellInformation": {
      "type": "object",
      "properties": {}
    },
    "EnvironmentConfig": {
      "type": "object",
      "properties": {
        "imageVersion": {
          "type": "string",
          "description": "The image version for the notebook run environment."
        },
        "packageConfig": {
          "$ref": "#/$defs/PackageConfig"
        }
      }
    },
    "GitMetadata": {
      "type": "object",
      "properties": {
        "connectionId": {
          "type": "string",
          "description": "The identifier of the Git connection."
        },
        "repository": {
          "type": "string",
          "description": "The name of the Git repository."
        },
        "branch": {
          "type": "string",
          "description": "The name of the Git branch."
        },
        "commitHash": {
          "type": "string",
          "description": "The commit hash in the Git repository."
        },
        "fileName": {
          "type": "string",
          "description": "The name of the file in the Git repository."
        },
        "committedAt": {
          "type": "string",
          "description": "The timestamp of when the commit was made."
        },
        "commitMessage": {
          "type": "string",
          "description": "The commit message associated with the Git commit."
        }
      },
      "required": [
        "connectionId",
        "repository",
        "branch",
        "commitHash"
      ]
    },
    "NotebookError": {
      "type": "object",
      "properties": {
        "message": {
          "type": "string",
          "description": "The error message. The maximum length is 256 characters."
        }
      },
      "required": [
        "message"
      ]
    },
    "PackageConfig": {
      "type": "object",
      "properties": {
        "packageManager": {
          "type": "string",
          "enum": [
            "UV"
          ],
          "description": "The package manager for the notebook run environment. The default value is UV."
        },
        "packageSpecification": {
          "type": "string",
          "description": "The package specification content for the notebook run environment. The maximum length is 10240 characters."
        }
      },
      "required": [
        "packageManager"
      ]
    }
  }
}