{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dms/json-schema/amazon-dms-modify-data-migration-message-schema.json",
  "title": "ModifyDataMigrationMessage",
  "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/ModifyDataMigrationMessage",
  "type": "object",
  "properties": {
    "DataMigrationIdentifier": {
      "type": "string",
      "description": "The identifier (name or ARN) of the data migration to modify."
    },
    "DataMigrationName": {
      "type": "string",
      "description": "The new name for the data migration."
    },
    "EnableCloudwatchLogs": {
      "type": "boolean",
      "description": "Whether to enable Cloudwatch logs for the data migration."
    },
    "ServiceAccessRoleArn": {
      "type": "string",
      "description": "The new service access role ARN for the data migration."
    },
    "DataMigrationType": {
      "type": "string",
      "enum": [
        "full-load",
        "cdc",
        "full-load-and-cdc"
      ],
      "description": "The new migration type for the data migration."
    },
    "SourceDataSettings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourceDataSetting"
      },
      "description": "The new information about the source data provider for the data migration."
    },
    "TargetDataSettings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TargetDataSetting"
      },
      "description": "The new information about the target data provider for the data migration."
    },
    "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."
    },
    "SelectionRules": {
      "type": "string",
      "description": "A JSON-formatted string that defines what objects to include and exclude from the migration."
    }
  },
  "required": [
    "DataMigrationIdentifier"
  ],
  "$defs": {
    "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."
        }
      }
    }
  }
}