{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dms/json-schema/amazon-dms-describe-data-migrations-response-schema.json",
  "title": "DescribeDataMigrationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dms-data-migration-api-openapi.yml#/components/schemas/DescribeDataMigrationsResponse",
  "type": "object",
  "properties": {
    "DataMigrations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataMigration"
      },
      "description": "Returns information about the data migrations used in the project."
    },
    "Marker": {
      "type": "string",
      "description": "An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords."
    }
  },
  "$defs": {
    "DataMigration": {
      "type": "object",
      "properties": {
        "DataMigrationName": {
          "type": "string",
          "description": "The user-friendly name for the data migration."
        },
        "DataMigrationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that identifies this replication."
        },
        "DataMigrationCreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The UTC time when DMS created the data migration."
        },
        "DataMigrationStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The UTC time when DMS started the data migration."
        },
        "DataMigrationEndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The UTC time when data migration ended."
        },
        "ServiceAccessRoleArn": {
          "type": "string",
          "description": "The IAM role that the data migration uses to access Amazon Web Services resources."
        },
        "MigrationProjectArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the data migration's associated migration project."
        },
        "DataMigrationType": {
          "type": "string",
          "enum": [
            "full-load",
            "cdc",
            "full-load-and-cdc"
          ],
          "description": "Specifies whether the data migration is full-load only, change data capture (CDC) only, or full-load and CDC."
        },
        "DataMigrationSettings": {
          "$ref": "#/$defs/DataMigrationSettings"
        },
        "SourceDataSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SourceDataSetting"
          },
          "description": "Specifies information about the data migration's source data provider."
        },
        "TargetDataSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TargetDataSetting"
          },
          "description": "Specifies information about the data migration's target data provider."
        },
        "DataMigrationStatistics": {
          "$ref": "#/$defs/DataMigrationStatistics"
        },
        "DataMigrationStatus": {
          "type": "string",
          "description": "The current status of the data migration."
        },
        "PublicIpAddresses": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IP addresses of the endpoints for the data migration."
        },
        "DataMigrationCidrBlocks": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The CIDR blocks of the endpoints for the data migration."
        },
        "LastFailureMessage": {
          "type": "string",
          "description": "Information about the data migration's most recent error or failure."
        },
        "StopReason": {
          "type": "string",
          "description": "The reason the data migration last stopped."
        }
      }
    },
    "DataMigrationSettings": {
      "type": "object",
      "properties": {
        "NumberOfJobs": {
          "type": "integer",
          "description": "The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target."
        },
        "CloudwatchLogsEnabled": {
          "type": "boolean",
          "description": "Whether to enable CloudWatch logging for the data migration."
        },
        "SelectionRules": {
          "type": "string",
          "description": "A JSON-formatted string that defines what objects to include and exclude from the migration."
        }
      }
    },
    "DataMigrationStatistics": {
      "type": "object",
      "properties": {
        "TablesLoaded": {
          "type": "integer",
          "description": "The number of tables loaded in the current data migration run."
        },
        "ElapsedTimeMillis": {
          "type": "integer",
          "description": "The elapsed duration of the data migration run."
        },
        "TablesLoading": {
          "type": "integer",
          "description": "The data migration's table loading progress."
        },
        "FullLoadPercentage": {
          "type": "integer",
          "description": "The data migration's progress in the full-load migration phase."
        },
        "CDCLatency": {
          "type": "integer",
          "description": "The current latency of the change data capture (CDC) operation."
        },
        "TablesQueued": {
          "type": "integer",
          "description": "The number of tables that are waiting for processing."
        },
        "TablesErrored": {
          "type": "integer",
          "description": "The number of tables that DMS failed to process."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the migration started."
        },
        "StopTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the migration stopped or failed."
        }
      }
    },
    "SourceDataSetting": {
      "type": "object",
      "properties": {
        "CDCStartPosition": {
          "type": "string",
          "description": "The change data capture (CDC) start position for the source data provider."
        },
        "CDCStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The change data capture (CDC) start time for the source data provider."
        },
        "CDCStopTime": {
          "type": "string",
          "format": "date-time",
          "description": "The change data capture (CDC) stop time for the source data provider."
        },
        "SlotName": {
          "type": "string",
          "description": "The name of the replication slot on the source data provider. This attribute is only valid for a PostgreSQL or Aurora PostgreSQL source."
        }
      }
    },
    "TargetDataSetting": {
      "type": "object",
      "properties": {
        "TablePreparationMode": {
          "type": "string",
          "enum": [
            "do-nothing",
            "truncate",
            "drop-tables-on-target"
          ],
          "description": "This setting determines how DMS handles the target tables before starting a data migration, either by leaving them untouched, dropping and recreating them, or truncating the existing data in the target tables."
        }
      }
    }
  }
}