{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-start-pipeline-execution-request-schema.json",
  "title": "StartPipelineExecutionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-executions-api-openapi.yml#/components/schemas/StartPipelineExecutionRequest",
  "type": "object",
  "properties": {
    "workspaceName": {
      "type": "string",
      "description": "The name of the workspace containing the pipeline."
    },
    "pipelineName": {
      "type": "string",
      "description": "The name of the pipeline to execute."
    },
    "executionEnvironmentVariableOverrides": {
      "$ref": "#/$defs/ExecutionEnvironmentVariables"
    },
    "executionMountOverrides": {
      "$ref": "#/$defs/MountOverrides"
    },
    "executionPriority": {
      "type": "integer",
      "description": "Scheduling priority for the execution. Lower values indicate higher priority. Defaults to 2 when not specified."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token, the server returns the cached result from the original successful request without performing the operation again."
    }
  },
  "required": [
    "workspaceName",
    "pipelineName"
  ],
  "$defs": {
    "ExecutionEnvironmentVariables": {
      "type": "object",
      "properties": {
        "global": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Global environment variables that apply to all compute nodes in the pipeline execution."
        },
        "computeNodes": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "description": "Per-compute-node environment variable overrides. Each entry maps a compute node name to its environment variable overrides."
        }
      }
    },
    "Mount": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "A unique name for the mount within the task."
        },
        "relativePath": {
          "type": "string",
          "description": "The relative path under the service-owned mount root where this mount is attached inside the container."
        },
        "source": {
          "$ref": "#/$defs/MountSource"
        },
        "storageType": {
          "type": "string",
          "enum": [
            "SHARED_STORAGE"
          ],
          "description": "The type of storage used for the mount."
        }
      },
      "required": [
        "name",
        "relativePath",
        "source",
        "storageType"
      ]
    },
    "MountOverrides": {
      "type": "object",
      "properties": {
        "computeNodes": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Mount"
            }
          },
          "description": "The mount overrides for each compute node, keyed by compute node name."
        }
      },
      "required": [
        "computeNodes"
      ]
    },
    "MountSource": {
      "type": "object",
      "properties": {
        "s3AccessPoint": {
          "$ref": "#/$defs/S3AccessPointSource"
        }
      },
      "description": "Exactly one member is set."
    },
    "S3AccessPointSource": {
      "type": "object",
      "properties": {
        "accessPointArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the S3 access point."
        },
        "prefix": {
          "type": "string",
          "description": "An optional key prefix to scope the mount to a subset of objects at the access point."
        }
      },
      "required": [
        "accessPointArn"
      ]
    }
  }
}