{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-get-template-step-response-schema.json",
  "title": "GetTemplateStepResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-migration-hub-operations-api-openapi.yml#/components/schemas/GetTemplateStepResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the step."
    },
    "stepGroupId": {
      "type": "string",
      "description": "The ID of the step group."
    },
    "templateId": {
      "type": "string",
      "description": "The ID of the template."
    },
    "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."
    },
    "creationTime": {
      "type": "string",
      "description": "The time at which the step was created."
    },
    "previous": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The previous step."
    },
    "next": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The next step."
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StepOutput"
      },
      "description": "The outputs of the step."
    },
    "stepAutomationConfiguration": {
      "$ref": "#/$defs/StepAutomationConfiguration"
    }
  },
  "$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."
        }
      }
    },
    "StepAutomationConfiguration": {
      "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."
        }
      }
    },
    "StepOutput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the step."
        },
        "dataType": {
          "type": "string",
          "description": "The data type of the step output."
        },
        "required": {
          "type": "boolean",
          "description": "Determine if an output is required from a step."
        }
      }
    }
  }
}