{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-elasticache/json-schema/amazon-elasticache-start-migration-message-schema.json",
  "title": "StartMigrationMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-elasticache-migration-api-openapi.yml#/components/schemas/StartMigrationMessage",
  "type": "object",
  "properties": {
    "ServerlessCacheName": {
      "type": "string",
      "description": "The name of the serverless cache to which data is being migrated."
    },
    "ReplicationGroupId": {
      "type": "string",
      "description": "The ID of the replication group to which data should be migrated."
    },
    "CustomerNodeEndpointList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CustomerNodeEndpoint"
      },
      "description": "The list of endpoints from which to migrate data. For Valkey or Redis OSS (cluster mode disabled), the list should have only one element. For serverless cache migrations, ElastiCache uses the endpoint that you provided in PrepareMigration."
    },
    "AutoCutover": {
      "type": "boolean",
      "description": "Specifies whether ElastiCache automatically attempts to complete the migration after data sync is established."
    },
    "ClearTargetCacheData": {
      "type": "boolean",
      "description": "Specifies whether ElastiCache deletes existing data in the serverless cache before migration begins. After StopMigration, StartMigration requires this option to restart the data sync."
    }
  },
  "$defs": {
    "CustomerNodeEndpoint": {
      "type": "object",
      "properties": {
        "Address": {
          "type": "string",
          "description": "The address of the node endpoint"
        },
        "Port": {
          "type": "integer",
          "description": "The port of the node endpoint"
        }
      }
    }
  }
}