{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-start-notebook-run-input-schema.json",
  "title": "StartNotebookRunInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-notebook-runs-api-openapi.yml#/components/schemas/StartNotebookRunInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The identifier of the Amazon SageMaker Unified Studio domain in which the notebook run is started."
    },
    "owningProjectIdentifier": {
      "type": "string",
      "description": "The identifier of the project that owns the notebook run."
    },
    "notebookIdentifier": {
      "type": "string",
      "description": "The identifier of the notebook to run."
    },
    "scheduleIdentifier": {
      "type": "string",
      "description": "The identifier of the schedule associated with the notebook run."
    },
    "computeConfiguration": {
      "$ref": "#/$defs/ComputeConfig"
    },
    "networkConfiguration": {
      "$ref": "#/$defs/NetworkConfig"
    },
    "timeoutConfiguration": {
      "$ref": "#/$defs/TimeoutConfig"
    },
    "notificationConfiguration": {
      "$ref": "#/$defs/NotificationConfig"
    },
    "triggerSource": {
      "$ref": "#/$defs/TriggerSource"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The metadata for the notebook run, specified as key-value pairs. You can specify up to 50 entries, with keys up to 128 characters and values up to 1024 characters."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The sensitive parameters for the notebook run, specified as key-value pairs. You can specify up to 50 entries, with keys up to 128 characters and values up to 1024 characters."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided."
    }
  },
  "required": [
    "domainIdentifier",
    "owningProjectIdentifier",
    "notebookIdentifier"
  ],
  "$defs": {
    "ComputeConfig": {
      "type": "object",
      "properties": {
        "instanceType": {
          "type": "string",
          "description": "The instance type for the notebook run compute."
        },
        "environmentVersion": {
          "type": "string",
          "description": "The environment version for the notebook run compute."
        }
      }
    },
    "NetworkConfig": {
      "type": "object",
      "properties": {
        "networkAccessType": {
          "type": "string",
          "enum": [
            "PUBLIC_INTERNET_ONLY",
            "VPC_ONLY"
          ],
          "description": "The network access type for the notebook run. Valid values are PUBLIC_INTERNET_ONLY and VPC_ONLY."
        },
        "vpcId": {
          "type": "string",
          "description": "The identifier of the VPC for the notebook run. This is required when the network access type is VPC_ONLY."
        },
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifiers of the subnets for the notebook run. You can specify up to 10 subnets."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifiers of the security groups for the notebook run. You can specify up to 5 security groups."
        }
      },
      "required": [
        "networkAccessType"
      ]
    },
    "NotificationConfig": {
      "type": "object",
      "properties": {
        "notifyOn": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SUCCEEDED",
              "FAILED",
              "STOPPED",
              "QUEUED",
              "STARTING",
              "RUNNING",
              "STOPPING"
            ]
          },
          "description": "The notebook run states that trigger notifications. You can specify up to 7 states, and the ordering of the states is not significant."
        }
      },
      "required": [
        "notifyOn"
      ]
    },
    "TimeoutConfig": {
      "type": "object",
      "properties": {
        "runTimeoutInMinutes": {
          "type": "integer",
          "description": "The timeout for the notebook run, in minutes. The minimum value is 60 minutes (1 hour), the maximum value is 1440 minutes (24 hours), and the default value is 720 minutes (12 hours)."
        }
      }
    },
    "TriggerSource": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "MANUAL",
            "SCHEDULED",
            "WORKFLOW"
          ],
          "description": "The type of the trigger source. Valid values are MANUAL, SCHEDULED, and WORKFLOW."
        },
        "name": {
          "type": "string",
          "description": "The name of the trigger source."
        }
      }
    }
  }
}