{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-notify-migration-task-state-request-schema.json",
  "title": "NotifyMigrationTaskStateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-migration-hub-aws-migration-hub-api-openapi.yml#/components/schemas/NotifyMigrationTaskStateRequest",
  "type": "object",
  "properties": {
    "ProgressUpdateStream": {
      "type": "string",
      "description": "The name of the ProgressUpdateStream."
    },
    "MigrationTaskName": {
      "type": "string",
      "description": "Unique identifier that references the migration task. Do not store personal data in this field."
    },
    "Task": {
      "$ref": "#/$defs/Task"
    },
    "UpdateDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp when the task was gathered."
    },
    "NextUpdateSeconds": {
      "type": "integer",
      "description": "Number of seconds after the UpdateDateTime within which the Migration Hub can expect an update. If Migration Hub does not receive an update within the specified interval, then the migration task will be considered stale."
    },
    "DryRun": {
      "type": "boolean",
      "description": "Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call."
    }
  },
  "required": [
    "ProgressUpdateStream",
    "MigrationTaskName",
    "Task",
    "UpdateDateTime",
    "NextUpdateSeconds"
  ],
  "$defs": {
    "Task": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "NOT_STARTED",
            "IN_PROGRESS",
            "FAILED",
            "COMPLETED"
          ],
          "description": "Status of the task - Not Started, In-Progress, Complete."
        },
        "StatusDetail": {
          "type": "string",
          "description": "Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state."
        },
        "ProgressPercent": {
          "type": "integer",
          "description": "Indication of the percentage completion of the task."
        }
      },
      "required": [
        "Status"
      ]
    }
  }
}