{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-update-workflow-step-request-schema.json",
  "title": "UpdateWorkflowStepRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-migration-hub-workflowstep-api-openapi.yml#/components/schemas/UpdateWorkflowStepRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the step."
    },
    "stepGroupId": {
      "type": "string",
      "description": "The ID of the step group."
    },
    "workflowId": {
      "type": "string",
      "description": "The ID of the migration workflow."
    },
    "name": {
      "type": "string",
      "description": "The name of the step."
    },
    "description": {
      "type": "string",
      "description": "The description of the step."
    },
    "stepActionType": {
      "type": "string",
      "description": "The action type of the step. You must run and update the status of a manual step for the workflow to continue after the completion of the step."
    },
    "workflowStepAutomationConfiguration": {
      "$ref": "#/$defs/WorkflowStepAutomationConfiguration"
    },
    "stepTarget": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The servers on which a step will be run."
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkflowStepOutput"
      },
      "description": "The outputs of a step."
    },
    "previous": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The previous step."
    },
    "next": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The next step."
    },
    "status": {
      "type": "string",
      "description": "The status of the step."
    }
  },
  "required": [
    "id",
    "stepGroupId",
    "workflowId"
  ],
  "$defs": {
    "PlatformCommand": {
      "type": "object",
      "properties": {
        "linux": {
          "type": "string",
          "description": "Command for Linux."
        },
        "windows": {
          "type": "string",
          "description": "Command for Windows."
        }
      }
    },
    "PlatformScriptKey": {
      "type": "object",
      "properties": {
        "linux": {
          "type": "string",
          "description": "The script location for Linux."
        },
        "windows": {
          "type": "string",
          "description": "The script location for Windows."
        }
      }
    },
    "WorkflowStepAutomationConfiguration": {
      "type": "object",
      "properties": {
        "scriptLocationS3Bucket": {
          "type": "string",
          "description": "The Amazon S3 bucket where the script is located."
        },
        "scriptLocationS3Key": {
          "$ref": "#/$defs/PlatformScriptKey"
        },
        "command": {
          "$ref": "#/$defs/PlatformCommand"
        },
        "runEnvironment": {
          "type": "string",
          "description": "The source or target environment."
        },
        "targetType": {
          "type": "string",
          "description": "The servers on which to run the script."
        }
      }
    },
    "WorkflowStepOutput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the step."
        },
        "dataType": {
          "type": "string",
          "description": "The data type of the output."
        },
        "required": {
          "type": "boolean",
          "description": "Determine if an output is required from a step."
        },
        "value": {
          "$ref": "#/$defs/WorkflowStepOutputUnion"
        }
      }
    },
    "WorkflowStepOutputUnion": {
      "type": "object",
      "properties": {
        "integerValue": {
          "type": "integer",
          "description": "The integer value."
        },
        "stringValue": {
          "type": "string",
          "description": "The string value."
        },
        "listOfStringValue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of string value."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}