1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DtsMigrateJob
tencentcloud 1.81.185 published on Wednesday, Apr 23, 2025 by tencentcloudstack

tencentcloud.DtsMigrateJob

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.185 published on Wednesday, Apr 23, 2025 by tencentcloudstack

    Provides a resource to create a DTS migrate job

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleMysqlInstance = new tencentcloud.MysqlInstance("exampleMysqlInstance", {
        instanceName: "tf-example",
        internetService: 1,
        engineVersion: "5.7",
        chargeType: "POSTPAID",
        rootPassword: "PassWord@123",
        slaveDeployMode: 0,
        slaveSyncMode: 1,
        availabilityZone: "ap-guangzhou-7",
        memSize: 128000,
        volumeSize: 250,
        vpcId: "vpc-i5yyodl9",
        subnetId: "subnet-hhi88a58",
        intranetPort: 3306,
        securityGroups: ["sg-e6a8xxib"],
        parameters: {
            character_set_server: "utf8",
            max_connections: "1000",
        },
        tags: {
            createBy: "Terraform",
        },
    });
    const exampleCynosdbCluster = new tencentcloud.CynosdbCluster("exampleCynosdbCluster", {
        clusterName: "tf-example",
        dbMode: "NORMAL",
        dbType: "MYSQL",
        dbVersion: "5.7",
        port: 3306,
        password: "Password@123",
        forceDelete: true,
        availableZone: "ap-guangzhou-6",
        slaveZone: "ap-guangzhou-7",
        vpcId: "vpc-i5yyodl9",
        subnetId: "subnet-hhi88a58",
        instanceCpuCore: 2,
        instanceMemorySize: 4,
        instanceMaintainDuration: 7200,
        instanceMaintainStartTime: 3600,
        instanceMaintainWeekdays: [
            "Fri",
            "Mon",
            "Sat",
            "Sun",
            "Thu",
            "Wed",
            "Tue",
        ],
        rwGroupSgs: ["sg-e6a8xxib"],
        roGroupSgs: ["sg-e6a8xxib"],
    });
    const exampleDtsMigrateService = new tencentcloud.DtsMigrateService("exampleDtsMigrateService", {
        srcDatabaseType: "mysql",
        dstDatabaseType: "cynosdbmysql",
        srcRegion: "ap-guangzhou",
        dstRegion: "ap-guangzhou",
        instanceClass: "small",
        jobName: "tf-example",
        tags: [{
            tagKey: "createBy",
            tagValue: "Terraform",
        }],
    });
    const exampleDtsMigrateJob = new tencentcloud.DtsMigrateJob("exampleDtsMigrateJob", {
        serviceId: exampleDtsMigrateService.dtsMigrateServiceId,
        runMode: "immediate",
        autoRetryTimeRangeMinutes: 0,
        migrateOption: {
            databaseTable: {
                objectMode: "partial",
                databases: [{
                    dbName: "db_name",
                    dbMode: "partial",
                    tableMode: "partial",
                    tables: [{
                        tableName: "table_name",
                        newTableName: "new_table_name",
                        tableEditMode: "rename",
                    }],
                }],
            },
        },
        srcInfo: {
            region: "ap-guangzhou",
            accessType: "cdb",
            databaseType: "mysql",
            nodeType: "simple",
            infos: [{
                user: "root",
                password: "Password@123",
                instanceId: exampleMysqlInstance.mysqlInstanceId,
            }],
        },
        dstInfo: {
            region: "ap-guangzhou",
            accessType: "cdb",
            databaseType: "cynosdbmysql",
            nodeType: "simple",
            infos: [{
                user: "root",
                password: "Password@123",
                instanceId: exampleCynosdbCluster.cynosdbClusterId,
            }],
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_mysql_instance = tencentcloud.MysqlInstance("exampleMysqlInstance",
        instance_name="tf-example",
        internet_service=1,
        engine_version="5.7",
        charge_type="POSTPAID",
        root_password="PassWord@123",
        slave_deploy_mode=0,
        slave_sync_mode=1,
        availability_zone="ap-guangzhou-7",
        mem_size=128000,
        volume_size=250,
        vpc_id="vpc-i5yyodl9",
        subnet_id="subnet-hhi88a58",
        intranet_port=3306,
        security_groups=["sg-e6a8xxib"],
        parameters={
            "character_set_server": "utf8",
            "max_connections": "1000",
        },
        tags={
            "createBy": "Terraform",
        })
    example_cynosdb_cluster = tencentcloud.CynosdbCluster("exampleCynosdbCluster",
        cluster_name="tf-example",
        db_mode="NORMAL",
        db_type="MYSQL",
        db_version="5.7",
        port=3306,
        password="Password@123",
        force_delete=True,
        available_zone="ap-guangzhou-6",
        slave_zone="ap-guangzhou-7",
        vpc_id="vpc-i5yyodl9",
        subnet_id="subnet-hhi88a58",
        instance_cpu_core=2,
        instance_memory_size=4,
        instance_maintain_duration=7200,
        instance_maintain_start_time=3600,
        instance_maintain_weekdays=[
            "Fri",
            "Mon",
            "Sat",
            "Sun",
            "Thu",
            "Wed",
            "Tue",
        ],
        rw_group_sgs=["sg-e6a8xxib"],
        ro_group_sgs=["sg-e6a8xxib"])
    example_dts_migrate_service = tencentcloud.DtsMigrateService("exampleDtsMigrateService",
        src_database_type="mysql",
        dst_database_type="cynosdbmysql",
        src_region="ap-guangzhou",
        dst_region="ap-guangzhou",
        instance_class="small",
        job_name="tf-example",
        tags=[{
            "tag_key": "createBy",
            "tag_value": "Terraform",
        }])
    example_dts_migrate_job = tencentcloud.DtsMigrateJob("exampleDtsMigrateJob",
        service_id=example_dts_migrate_service.dts_migrate_service_id,
        run_mode="immediate",
        auto_retry_time_range_minutes=0,
        migrate_option={
            "database_table": {
                "object_mode": "partial",
                "databases": [{
                    "db_name": "db_name",
                    "db_mode": "partial",
                    "table_mode": "partial",
                    "tables": [{
                        "table_name": "table_name",
                        "new_table_name": "new_table_name",
                        "table_edit_mode": "rename",
                    }],
                }],
            },
        },
        src_info={
            "region": "ap-guangzhou",
            "access_type": "cdb",
            "database_type": "mysql",
            "node_type": "simple",
            "infos": [{
                "user": "root",
                "password": "Password@123",
                "instance_id": example_mysql_instance.mysql_instance_id,
            }],
        },
        dst_info={
            "region": "ap-guangzhou",
            "access_type": "cdb",
            "database_type": "cynosdbmysql",
            "node_type": "simple",
            "infos": [{
                "user": "root",
                "password": "Password@123",
                "instance_id": example_cynosdb_cluster.cynosdb_cluster_id,
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleMysqlInstance, err := tencentcloud.NewMysqlInstance(ctx, "exampleMysqlInstance", &tencentcloud.MysqlInstanceArgs{
    			InstanceName:     pulumi.String("tf-example"),
    			InternetService:  pulumi.Float64(1),
    			EngineVersion:    pulumi.String("5.7"),
    			ChargeType:       pulumi.String("POSTPAID"),
    			RootPassword:     pulumi.String("PassWord@123"),
    			SlaveDeployMode:  pulumi.Float64(0),
    			SlaveSyncMode:    pulumi.Float64(1),
    			AvailabilityZone: pulumi.String("ap-guangzhou-7"),
    			MemSize:          pulumi.Float64(128000),
    			VolumeSize:       pulumi.Float64(250),
    			VpcId:            pulumi.String("vpc-i5yyodl9"),
    			SubnetId:         pulumi.String("subnet-hhi88a58"),
    			IntranetPort:     pulumi.Float64(3306),
    			SecurityGroups: pulumi.StringArray{
    				pulumi.String("sg-e6a8xxib"),
    			},
    			Parameters: pulumi.StringMap{
    				"character_set_server": pulumi.String("utf8"),
    				"max_connections":      pulumi.String("1000"),
    			},
    			Tags: pulumi.StringMap{
    				"createBy": pulumi.String("Terraform"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleCynosdbCluster, err := tencentcloud.NewCynosdbCluster(ctx, "exampleCynosdbCluster", &tencentcloud.CynosdbClusterArgs{
    			ClusterName:               pulumi.String("tf-example"),
    			DbMode:                    pulumi.String("NORMAL"),
    			DbType:                    pulumi.String("MYSQL"),
    			DbVersion:                 pulumi.String("5.7"),
    			Port:                      pulumi.Float64(3306),
    			Password:                  pulumi.String("Password@123"),
    			ForceDelete:               pulumi.Bool(true),
    			AvailableZone:             pulumi.String("ap-guangzhou-6"),
    			SlaveZone:                 pulumi.String("ap-guangzhou-7"),
    			VpcId:                     pulumi.String("vpc-i5yyodl9"),
    			SubnetId:                  pulumi.String("subnet-hhi88a58"),
    			InstanceCpuCore:           pulumi.Float64(2),
    			InstanceMemorySize:        pulumi.Float64(4),
    			InstanceMaintainDuration:  pulumi.Float64(7200),
    			InstanceMaintainStartTime: pulumi.Float64(3600),
    			InstanceMaintainWeekdays: pulumi.StringArray{
    				pulumi.String("Fri"),
    				pulumi.String("Mon"),
    				pulumi.String("Sat"),
    				pulumi.String("Sun"),
    				pulumi.String("Thu"),
    				pulumi.String("Wed"),
    				pulumi.String("Tue"),
    			},
    			RwGroupSgs: pulumi.StringArray{
    				pulumi.String("sg-e6a8xxib"),
    			},
    			RoGroupSgs: pulumi.StringArray{
    				pulumi.String("sg-e6a8xxib"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleDtsMigrateService, err := tencentcloud.NewDtsMigrateService(ctx, "exampleDtsMigrateService", &tencentcloud.DtsMigrateServiceArgs{
    			SrcDatabaseType: pulumi.String("mysql"),
    			DstDatabaseType: pulumi.String("cynosdbmysql"),
    			SrcRegion:       pulumi.String("ap-guangzhou"),
    			DstRegion:       pulumi.String("ap-guangzhou"),
    			InstanceClass:   pulumi.String("small"),
    			JobName:         pulumi.String("tf-example"),
    			Tags: tencentcloud.DtsMigrateServiceTagArray{
    				&tencentcloud.DtsMigrateServiceTagArgs{
    					TagKey:   pulumi.String("createBy"),
    					TagValue: pulumi.String("Terraform"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewDtsMigrateJob(ctx, "exampleDtsMigrateJob", &tencentcloud.DtsMigrateJobArgs{
    			ServiceId:                 exampleDtsMigrateService.DtsMigrateServiceId,
    			RunMode:                   pulumi.String("immediate"),
    			AutoRetryTimeRangeMinutes: pulumi.Float64(0),
    			MigrateOption: &tencentcloud.DtsMigrateJobMigrateOptionArgs{
    				DatabaseTable: &tencentcloud.DtsMigrateJobMigrateOptionDatabaseTableArgs{
    					ObjectMode: pulumi.String("partial"),
    					Databases: tencentcloud.DtsMigrateJobMigrateOptionDatabaseTableDatabaseArray{
    						&tencentcloud.DtsMigrateJobMigrateOptionDatabaseTableDatabaseArgs{
    							DbName:    pulumi.String("db_name"),
    							DbMode:    pulumi.String("partial"),
    							TableMode: pulumi.String("partial"),
    							Tables: tencentcloud.DtsMigrateJobMigrateOptionDatabaseTableDatabaseTableArray{
    								&tencentcloud.DtsMigrateJobMigrateOptionDatabaseTableDatabaseTableArgs{
    									TableName:     pulumi.String("table_name"),
    									NewTableName:  pulumi.String("new_table_name"),
    									TableEditMode: pulumi.String("rename"),
    								},
    							},
    						},
    					},
    				},
    			},
    			SrcInfo: &tencentcloud.DtsMigrateJobSrcInfoArgs{
    				Region:       pulumi.String("ap-guangzhou"),
    				AccessType:   pulumi.String("cdb"),
    				DatabaseType: pulumi.String("mysql"),
    				NodeType:     pulumi.String("simple"),
    				Infos: tencentcloud.DtsMigrateJobSrcInfoInfoArray{
    					&tencentcloud.DtsMigrateJobSrcInfoInfoArgs{
    						User:       pulumi.String("root"),
    						Password:   pulumi.String("Password@123"),
    						InstanceId: exampleMysqlInstance.MysqlInstanceId,
    					},
    				},
    			},
    			DstInfo: &tencentcloud.DtsMigrateJobDstInfoArgs{
    				Region:       pulumi.String("ap-guangzhou"),
    				AccessType:   pulumi.String("cdb"),
    				DatabaseType: pulumi.String("cynosdbmysql"),
    				NodeType:     pulumi.String("simple"),
    				Infos: tencentcloud.DtsMigrateJobDstInfoInfoArray{
    					&tencentcloud.DtsMigrateJobDstInfoInfoArgs{
    						User:       pulumi.String("root"),
    						Password:   pulumi.String("Password@123"),
    						InstanceId: exampleCynosdbCluster.CynosdbClusterId,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleMysqlInstance = new Tencentcloud.MysqlInstance("exampleMysqlInstance", new()
        {
            InstanceName = "tf-example",
            InternetService = 1,
            EngineVersion = "5.7",
            ChargeType = "POSTPAID",
            RootPassword = "PassWord@123",
            SlaveDeployMode = 0,
            SlaveSyncMode = 1,
            AvailabilityZone = "ap-guangzhou-7",
            MemSize = 128000,
            VolumeSize = 250,
            VpcId = "vpc-i5yyodl9",
            SubnetId = "subnet-hhi88a58",
            IntranetPort = 3306,
            SecurityGroups = new[]
            {
                "sg-e6a8xxib",
            },
            Parameters = 
            {
                { "character_set_server", "utf8" },
                { "max_connections", "1000" },
            },
            Tags = 
            {
                { "createBy", "Terraform" },
            },
        });
    
        var exampleCynosdbCluster = new Tencentcloud.CynosdbCluster("exampleCynosdbCluster", new()
        {
            ClusterName = "tf-example",
            DbMode = "NORMAL",
            DbType = "MYSQL",
            DbVersion = "5.7",
            Port = 3306,
            Password = "Password@123",
            ForceDelete = true,
            AvailableZone = "ap-guangzhou-6",
            SlaveZone = "ap-guangzhou-7",
            VpcId = "vpc-i5yyodl9",
            SubnetId = "subnet-hhi88a58",
            InstanceCpuCore = 2,
            InstanceMemorySize = 4,
            InstanceMaintainDuration = 7200,
            InstanceMaintainStartTime = 3600,
            InstanceMaintainWeekdays = new[]
            {
                "Fri",
                "Mon",
                "Sat",
                "Sun",
                "Thu",
                "Wed",
                "Tue",
            },
            RwGroupSgs = new[]
            {
                "sg-e6a8xxib",
            },
            RoGroupSgs = new[]
            {
                "sg-e6a8xxib",
            },
        });
    
        var exampleDtsMigrateService = new Tencentcloud.DtsMigrateService("exampleDtsMigrateService", new()
        {
            SrcDatabaseType = "mysql",
            DstDatabaseType = "cynosdbmysql",
            SrcRegion = "ap-guangzhou",
            DstRegion = "ap-guangzhou",
            InstanceClass = "small",
            JobName = "tf-example",
            Tags = new[]
            {
                new Tencentcloud.Inputs.DtsMigrateServiceTagArgs
                {
                    TagKey = "createBy",
                    TagValue = "Terraform",
                },
            },
        });
    
        var exampleDtsMigrateJob = new Tencentcloud.DtsMigrateJob("exampleDtsMigrateJob", new()
        {
            ServiceId = exampleDtsMigrateService.DtsMigrateServiceId,
            RunMode = "immediate",
            AutoRetryTimeRangeMinutes = 0,
            MigrateOption = new Tencentcloud.Inputs.DtsMigrateJobMigrateOptionArgs
            {
                DatabaseTable = new Tencentcloud.Inputs.DtsMigrateJobMigrateOptionDatabaseTableArgs
                {
                    ObjectMode = "partial",
                    Databases = new[]
                    {
                        new Tencentcloud.Inputs.DtsMigrateJobMigrateOptionDatabaseTableDatabaseArgs
                        {
                            DbName = "db_name",
                            DbMode = "partial",
                            TableMode = "partial",
                            Tables = new[]
                            {
                                new Tencentcloud.Inputs.DtsMigrateJobMigrateOptionDatabaseTableDatabaseTableArgs
                                {
                                    TableName = "table_name",
                                    NewTableName = "new_table_name",
                                    TableEditMode = "rename",
                                },
                            },
                        },
                    },
                },
            },
            SrcInfo = new Tencentcloud.Inputs.DtsMigrateJobSrcInfoArgs
            {
                Region = "ap-guangzhou",
                AccessType = "cdb",
                DatabaseType = "mysql",
                NodeType = "simple",
                Infos = new[]
                {
                    new Tencentcloud.Inputs.DtsMigrateJobSrcInfoInfoArgs
                    {
                        User = "root",
                        Password = "Password@123",
                        InstanceId = exampleMysqlInstance.MysqlInstanceId,
                    },
                },
            },
            DstInfo = new Tencentcloud.Inputs.DtsMigrateJobDstInfoArgs
            {
                Region = "ap-guangzhou",
                AccessType = "cdb",
                DatabaseType = "cynosdbmysql",
                NodeType = "simple",
                Infos = new[]
                {
                    new Tencentcloud.Inputs.DtsMigrateJobDstInfoInfoArgs
                    {
                        User = "root",
                        Password = "Password@123",
                        InstanceId = exampleCynosdbCluster.CynosdbClusterId,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MysqlInstance;
    import com.pulumi.tencentcloud.MysqlInstanceArgs;
    import com.pulumi.tencentcloud.CynosdbCluster;
    import com.pulumi.tencentcloud.CynosdbClusterArgs;
    import com.pulumi.tencentcloud.DtsMigrateService;
    import com.pulumi.tencentcloud.DtsMigrateServiceArgs;
    import com.pulumi.tencentcloud.inputs.DtsMigrateServiceTagArgs;
    import com.pulumi.tencentcloud.DtsMigrateJob;
    import com.pulumi.tencentcloud.DtsMigrateJobArgs;
    import com.pulumi.tencentcloud.inputs.DtsMigrateJobMigrateOptionArgs;
    import com.pulumi.tencentcloud.inputs.DtsMigrateJobMigrateOptionDatabaseTableArgs;
    import com.pulumi.tencentcloud.inputs.DtsMigrateJobSrcInfoArgs;
    import com.pulumi.tencentcloud.inputs.DtsMigrateJobDstInfoArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleMysqlInstance = new MysqlInstance("exampleMysqlInstance", MysqlInstanceArgs.builder()
                .instanceName("tf-example")
                .internetService(1)
                .engineVersion("5.7")
                .chargeType("POSTPAID")
                .rootPassword("PassWord@123")
                .slaveDeployMode(0)
                .slaveSyncMode(1)
                .availabilityZone("ap-guangzhou-7")
                .memSize(128000)
                .volumeSize(250)
                .vpcId("vpc-i5yyodl9")
                .subnetId("subnet-hhi88a58")
                .intranetPort(3306)
                .securityGroups("sg-e6a8xxib")
                .parameters(Map.ofEntries(
                    Map.entry("character_set_server", "utf8"),
                    Map.entry("max_connections", "1000")
                ))
                .tags(Map.of("createBy", "Terraform"))
                .build());
    
            var exampleCynosdbCluster = new CynosdbCluster("exampleCynosdbCluster", CynosdbClusterArgs.builder()
                .clusterName("tf-example")
                .dbMode("NORMAL")
                .dbType("MYSQL")
                .dbVersion("5.7")
                .port(3306)
                .password("Password@123")
                .forceDelete(true)
                .availableZone("ap-guangzhou-6")
                .slaveZone("ap-guangzhou-7")
                .vpcId("vpc-i5yyodl9")
                .subnetId("subnet-hhi88a58")
                .instanceCpuCore(2)
                .instanceMemorySize(4)
                .instanceMaintainDuration(7200)
                .instanceMaintainStartTime(3600)
                .instanceMaintainWeekdays(            
                    "Fri",
                    "Mon",
                    "Sat",
                    "Sun",
                    "Thu",
                    "Wed",
                    "Tue")
                .rwGroupSgs("sg-e6a8xxib")
                .roGroupSgs("sg-e6a8xxib")
                .build());
    
            var exampleDtsMigrateService = new DtsMigrateService("exampleDtsMigrateService", DtsMigrateServiceArgs.builder()
                .srcDatabaseType("mysql")
                .dstDatabaseType("cynosdbmysql")
                .srcRegion("ap-guangzhou")
                .dstRegion("ap-guangzhou")
                .instanceClass("small")
                .jobName("tf-example")
                .tags(DtsMigrateServiceTagArgs.builder()
                    .tagKey("createBy")
                    .tagValue("Terraform")
                    .build())
                .build());
    
            var exampleDtsMigrateJob = new DtsMigrateJob("exampleDtsMigrateJob", DtsMigrateJobArgs.builder()
                .serviceId(exampleDtsMigrateService.dtsMigrateServiceId())
                .runMode("immediate")
                .autoRetryTimeRangeMinutes(0)
                .migrateOption(DtsMigrateJobMigrateOptionArgs.builder()
                    .databaseTable(DtsMigrateJobMigrateOptionDatabaseTableArgs.builder()
                        .objectMode("partial")
                        .databases(DtsMigrateJobMigrateOptionDatabaseTableDatabaseArgs.builder()
                            .dbName("db_name")
                            .dbMode("partial")
                            .tableMode("partial")
                            .tables(DtsMigrateJobMigrateOptionDatabaseTableDatabaseTableArgs.builder()
                                .tableName("table_name")
                                .newTableName("new_table_name")
                                .tableEditMode("rename")
                                .build())
                            .build())
                        .build())
                    .build())
                .srcInfo(DtsMigrateJobSrcInfoArgs.builder()
                    .region("ap-guangzhou")
                    .accessType("cdb")
                    .databaseType("mysql")
                    .nodeType("simple")
                    .infos(DtsMigrateJobSrcInfoInfoArgs.builder()
                        .user("root")
                        .password("Password@123")
                        .instanceId(exampleMysqlInstance.mysqlInstanceId())
                        .build())
                    .build())
                .dstInfo(DtsMigrateJobDstInfoArgs.builder()
                    .region("ap-guangzhou")
                    .accessType("cdb")
                    .databaseType("cynosdbmysql")
                    .nodeType("simple")
                    .infos(DtsMigrateJobDstInfoInfoArgs.builder()
                        .user("root")
                        .password("Password@123")
                        .instanceId(exampleCynosdbCluster.cynosdbClusterId())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampleMysqlInstance:
        type: tencentcloud:MysqlInstance
        properties:
          instanceName: tf-example
          internetService: 1
          engineVersion: '5.7'
          chargeType: POSTPAID
          rootPassword: PassWord@123
          slaveDeployMode: 0
          slaveSyncMode: 1
          availabilityZone: ap-guangzhou-7
          memSize: 128000
          volumeSize: 250
          vpcId: vpc-i5yyodl9
          subnetId: subnet-hhi88a58
          intranetPort: 3306
          securityGroups:
            - sg-e6a8xxib
          parameters:
            character_set_server: utf8
            max_connections: '1000'
          tags:
            createBy: Terraform
      exampleCynosdbCluster:
        type: tencentcloud:CynosdbCluster
        properties:
          clusterName: tf-example
          dbMode: NORMAL
          dbType: MYSQL
          dbVersion: '5.7'
          port: 3306
          password: Password@123
          forceDelete: true
          availableZone: ap-guangzhou-6
          slaveZone: ap-guangzhou-7
          vpcId: vpc-i5yyodl9
          subnetId: subnet-hhi88a58
          instanceCpuCore: 2
          instanceMemorySize: 4
          instanceMaintainDuration: 7200
          instanceMaintainStartTime: 3600
          instanceMaintainWeekdays:
            - Fri
            - Mon
            - Sat
            - Sun
            - Thu
            - Wed
            - Tue
          rwGroupSgs:
            - sg-e6a8xxib
          roGroupSgs:
            - sg-e6a8xxib
      exampleDtsMigrateService:
        type: tencentcloud:DtsMigrateService
        properties:
          srcDatabaseType: mysql
          dstDatabaseType: cynosdbmysql
          srcRegion: ap-guangzhou
          dstRegion: ap-guangzhou
          instanceClass: small
          jobName: tf-example
          tags:
            - tagKey: createBy
              tagValue: Terraform
      exampleDtsMigrateJob:
        type: tencentcloud:DtsMigrateJob
        properties:
          serviceId: ${exampleDtsMigrateService.dtsMigrateServiceId}
          runMode: immediate
          autoRetryTimeRangeMinutes: 0
          migrateOption:
            databaseTable:
              objectMode: partial
              databases:
                - dbName: db_name
                  dbMode: partial
                  tableMode: partial
                  tables:
                    - tableName: table_name
                      newTableName: new_table_name
                      tableEditMode: rename
          srcInfo:
            region: ap-guangzhou
            accessType: cdb
            databaseType: mysql
            nodeType: simple
            infos:
              - user: root
                password: Password@123
                instanceId: ${exampleMysqlInstance.mysqlInstanceId}
          dstInfo:
            region: ap-guangzhou
            accessType: cdb
            databaseType: cynosdbmysql
            nodeType: simple
            infos:
              - user: root
                password: Password@123
                instanceId: ${exampleCynosdbCluster.cynosdbClusterId}
    

    Create DtsMigrateJob Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DtsMigrateJob(name: string, args: DtsMigrateJobArgs, opts?: CustomResourceOptions);
    @overload
    def DtsMigrateJob(resource_name: str,
                      args: DtsMigrateJobArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DtsMigrateJob(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      dst_info: Optional[DtsMigrateJobDstInfoArgs] = None,
                      migrate_option: Optional[DtsMigrateJobMigrateOptionArgs] = None,
                      run_mode: Optional[str] = None,
                      service_id: Optional[str] = None,
                      src_info: Optional[DtsMigrateJobSrcInfoArgs] = None,
                      auto_retry_time_range_minutes: Optional[float] = None,
                      dts_migrate_job_id: Optional[str] = None,
                      expect_run_time: Optional[str] = None)
    func NewDtsMigrateJob(ctx *Context, name string, args DtsMigrateJobArgs, opts ...ResourceOption) (*DtsMigrateJob, error)
    public DtsMigrateJob(string name, DtsMigrateJobArgs args, CustomResourceOptions? opts = null)
    public DtsMigrateJob(String name, DtsMigrateJobArgs args)
    public DtsMigrateJob(String name, DtsMigrateJobArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DtsMigrateJob
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DtsMigrateJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DtsMigrateJobArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DtsMigrateJobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DtsMigrateJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DtsMigrateJobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DtsMigrateJob Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DtsMigrateJob resource accepts the following input properties:

    DstInfo DtsMigrateJobDstInfo
    Target database information.
    MigrateOption DtsMigrateJobMigrateOption
    Migration job configuration options, used to describe how the task performs migration.
    RunMode string
    Running mode. Valid values: immediate, timed.
    ServiceId string
    Migrate service Id from tencentcloud.DtsMigrateService.
    SrcInfo DtsMigrateJobSrcInfo
    Source instance information.
    AutoRetryTimeRangeMinutes double
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    DtsMigrateJobId string
    ID of the resource.
    ExpectRunTime string
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    DstInfo DtsMigrateJobDstInfoArgs
    Target database information.
    MigrateOption DtsMigrateJobMigrateOptionArgs
    Migration job configuration options, used to describe how the task performs migration.
    RunMode string
    Running mode. Valid values: immediate, timed.
    ServiceId string
    Migrate service Id from tencentcloud.DtsMigrateService.
    SrcInfo DtsMigrateJobSrcInfoArgs
    Source instance information.
    AutoRetryTimeRangeMinutes float64
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    DtsMigrateJobId string
    ID of the resource.
    ExpectRunTime string
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    dstInfo DtsMigrateJobDstInfo
    Target database information.
    migrateOption DtsMigrateJobMigrateOption
    Migration job configuration options, used to describe how the task performs migration.
    runMode String
    Running mode. Valid values: immediate, timed.
    serviceId String
    Migrate service Id from tencentcloud.DtsMigrateService.
    srcInfo DtsMigrateJobSrcInfo
    Source instance information.
    autoRetryTimeRangeMinutes Double
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dtsMigrateJobId String
    ID of the resource.
    expectRunTime String
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    dstInfo DtsMigrateJobDstInfo
    Target database information.
    migrateOption DtsMigrateJobMigrateOption
    Migration job configuration options, used to describe how the task performs migration.
    runMode string
    Running mode. Valid values: immediate, timed.
    serviceId string
    Migrate service Id from tencentcloud.DtsMigrateService.
    srcInfo DtsMigrateJobSrcInfo
    Source instance information.
    autoRetryTimeRangeMinutes number
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dtsMigrateJobId string
    ID of the resource.
    expectRunTime string
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    dst_info DtsMigrateJobDstInfoArgs
    Target database information.
    migrate_option DtsMigrateJobMigrateOptionArgs
    Migration job configuration options, used to describe how the task performs migration.
    run_mode str
    Running mode. Valid values: immediate, timed.
    service_id str
    Migrate service Id from tencentcloud.DtsMigrateService.
    src_info DtsMigrateJobSrcInfoArgs
    Source instance information.
    auto_retry_time_range_minutes float
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dts_migrate_job_id str
    ID of the resource.
    expect_run_time str
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    dstInfo Property Map
    Target database information.
    migrateOption Property Map
    Migration job configuration options, used to describe how the task performs migration.
    runMode String
    Running mode. Valid values: immediate, timed.
    serviceId String
    Migrate service Id from tencentcloud.DtsMigrateService.
    srcInfo Property Map
    Source instance information.
    autoRetryTimeRangeMinutes Number
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dtsMigrateJobId String
    ID of the resource.
    expectRunTime String
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DtsMigrateJob resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).

    Look up Existing DtsMigrateJob Resource

    Get an existing DtsMigrateJob resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DtsMigrateJobState, opts?: CustomResourceOptions): DtsMigrateJob
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_retry_time_range_minutes: Optional[float] = None,
            dst_info: Optional[DtsMigrateJobDstInfoArgs] = None,
            dts_migrate_job_id: Optional[str] = None,
            expect_run_time: Optional[str] = None,
            migrate_option: Optional[DtsMigrateJobMigrateOptionArgs] = None,
            run_mode: Optional[str] = None,
            service_id: Optional[str] = None,
            src_info: Optional[DtsMigrateJobSrcInfoArgs] = None,
            status: Optional[str] = None) -> DtsMigrateJob
    func GetDtsMigrateJob(ctx *Context, name string, id IDInput, state *DtsMigrateJobState, opts ...ResourceOption) (*DtsMigrateJob, error)
    public static DtsMigrateJob Get(string name, Input<string> id, DtsMigrateJobState? state, CustomResourceOptions? opts = null)
    public static DtsMigrateJob get(String name, Output<String> id, DtsMigrateJobState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DtsMigrateJob    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoRetryTimeRangeMinutes double
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    DstInfo DtsMigrateJobDstInfo
    Target database information.
    DtsMigrateJobId string
    ID of the resource.
    ExpectRunTime string
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    MigrateOption DtsMigrateJobMigrateOption
    Migration job configuration options, used to describe how the task performs migration.
    RunMode string
    Running mode. Valid values: immediate, timed.
    ServiceId string
    Migrate service Id from tencentcloud.DtsMigrateService.
    SrcInfo DtsMigrateJobSrcInfo
    Source instance information.
    Status string
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    AutoRetryTimeRangeMinutes float64
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    DstInfo DtsMigrateJobDstInfoArgs
    Target database information.
    DtsMigrateJobId string
    ID of the resource.
    ExpectRunTime string
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    MigrateOption DtsMigrateJobMigrateOptionArgs
    Migration job configuration options, used to describe how the task performs migration.
    RunMode string
    Running mode. Valid values: immediate, timed.
    ServiceId string
    Migrate service Id from tencentcloud.DtsMigrateService.
    SrcInfo DtsMigrateJobSrcInfoArgs
    Source instance information.
    Status string
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    autoRetryTimeRangeMinutes Double
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dstInfo DtsMigrateJobDstInfo
    Target database information.
    dtsMigrateJobId String
    ID of the resource.
    expectRunTime String
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    migrateOption DtsMigrateJobMigrateOption
    Migration job configuration options, used to describe how the task performs migration.
    runMode String
    Running mode. Valid values: immediate, timed.
    serviceId String
    Migrate service Id from tencentcloud.DtsMigrateService.
    srcInfo DtsMigrateJobSrcInfo
    Source instance information.
    status String
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    autoRetryTimeRangeMinutes number
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dstInfo DtsMigrateJobDstInfo
    Target database information.
    dtsMigrateJobId string
    ID of the resource.
    expectRunTime string
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    migrateOption DtsMigrateJobMigrateOption
    Migration job configuration options, used to describe how the task performs migration.
    runMode string
    Running mode. Valid values: immediate, timed.
    serviceId string
    Migrate service Id from tencentcloud.DtsMigrateService.
    srcInfo DtsMigrateJobSrcInfo
    Source instance information.
    status string
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    auto_retry_time_range_minutes float
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dst_info DtsMigrateJobDstInfoArgs
    Target database information.
    dts_migrate_job_id str
    ID of the resource.
    expect_run_time str
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    migrate_option DtsMigrateJobMigrateOptionArgs
    Migration job configuration options, used to describe how the task performs migration.
    run_mode str
    Running mode. Valid values: immediate, timed.
    service_id str
    Migrate service Id from tencentcloud.DtsMigrateService.
    src_info DtsMigrateJobSrcInfoArgs
    Source instance information.
    status str
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).
    autoRetryTimeRangeMinutes Number
    The automatic retry time period can be set from 5 to 720 minutes, with 0 indicating no retry.
    dstInfo Property Map
    Target database information.
    dtsMigrateJobId String
    ID of the resource.
    expectRunTime String
    Expected start time in the format of 2006-01-02 15:04:05, which is required if RunMode is timed.
    migrateOption Property Map
    Migration job configuration options, used to describe how the task performs migration.
    runMode String
    Running mode. Valid values: immediate, timed.
    serviceId String
    Migrate service Id from tencentcloud.DtsMigrateService.
    srcInfo Property Map
    Source instance information.
    status String
    Task status. Valid values: created(Created), checking (Checking), checkPass (Check passed), checkNotPass (Check not passed), readyRun (Ready for running), running (Running), readyComplete (Preparation completed), success (Successful), failed (Failed), stopping (Stopping), completing (Completing), pausing (Pausing), manualPaused (Paused).

    Supporting Types

    DtsMigrateJobDstInfo, DtsMigrateJobDstInfoArgs

    AccessType string
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    DatabaseType string
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    Infos List<DtsMigrateJobDstInfoInfo>
    Database information.
    NodeType string
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    Region string
    Instance region.
    ExtraAttrs List<DtsMigrateJobDstInfoExtraAttr>
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin','AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    Supplier string
    Instance service provider, such as aliyun and others.
    AccessType string
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    DatabaseType string
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    Infos []DtsMigrateJobDstInfoInfo
    Database information.
    NodeType string
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    Region string
    Instance region.
    ExtraAttrs []DtsMigrateJobDstInfoExtraAttr
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin','AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    Supplier string
    Instance service provider, such as aliyun and others.
    accessType String
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    databaseType String
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos List<DtsMigrateJobDstInfoInfo>
    Database information.
    nodeType String
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region String
    Instance region.
    extraAttrs List<DtsMigrateJobDstInfoExtraAttr>
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin','AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier String
    Instance service provider, such as aliyun and others.
    accessType string
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    databaseType string
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos DtsMigrateJobDstInfoInfo[]
    Database information.
    nodeType string
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region string
    Instance region.
    extraAttrs DtsMigrateJobDstInfoExtraAttr[]
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin','AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier string
    Instance service provider, such as aliyun and others.
    access_type str
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    database_type str
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos Sequence[DtsMigrateJobDstInfoInfo]
    Database information.
    node_type str
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region str
    Instance region.
    extra_attrs Sequence[DtsMigrateJobDstInfoExtraAttr]
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin','AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier str
    Instance service provider, such as aliyun and others.
    accessType String
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    databaseType String
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos List<Property Map>
    Database information.
    nodeType String
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region String
    Instance region.
    extraAttrs List<Property Map>
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin','AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier String
    Instance service provider, such as aliyun and others.

    DtsMigrateJobDstInfoExtraAttr, DtsMigrateJobDstInfoExtraAttrArgs

    Key string
    Option key.
    Value string
    Option value.
    Key string
    Option key.
    Value string
    Option value.
    key String
    Option key.
    value String
    Option value.
    key string
    Option key.
    value string
    Option value.
    key str
    Option key.
    value str
    Option value.
    key String
    Option key.
    value String
    Option value.

    DtsMigrateJobDstInfoInfo, DtsMigrateJobDstInfoInfoArgs

    Account string
    Instance account.
    AccountMode string
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    AccountRole string
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    CcnGwId string
    CCN instance ID such as ccn-afp6kltc.
    CvmInstanceId string
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    DbKernel string
    Kernel version, such as the different kernel versions of MariaDB.
    EngineVersion string
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    Host string
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    InstanceId string
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    Password string
    Instance password.
    Port double
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    Role string
    Node role in a distributed database, such as the mongos node in MongoDB.
    SubnetId string
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    TmpSecretId string
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    TmpSecretKey string
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    TmpToken string
    Temporary token, you can obtain the temporary key by GetFederationToken.
    UniqDcgId string
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    UniqVpnGwId string
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    User string
    Instance username.
    VpcId string
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    Account string
    Instance account.
    AccountMode string
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    AccountRole string
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    CcnGwId string
    CCN instance ID such as ccn-afp6kltc.
    CvmInstanceId string
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    DbKernel string
    Kernel version, such as the different kernel versions of MariaDB.
    EngineVersion string
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    Host string
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    InstanceId string
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    Password string
    Instance password.
    Port float64
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    Role string
    Node role in a distributed database, such as the mongos node in MongoDB.
    SubnetId string
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    TmpSecretId string
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    TmpSecretKey string
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    TmpToken string
    Temporary token, you can obtain the temporary key by GetFederationToken.
    UniqDcgId string
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    UniqVpnGwId string
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    User string
    Instance username.
    VpcId string
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account String
    Instance account.
    accountMode String
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    accountRole String
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccnGwId String
    CCN instance ID such as ccn-afp6kltc.
    cvmInstanceId String
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    dbKernel String
    Kernel version, such as the different kernel versions of MariaDB.
    engineVersion String
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host String
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instanceId String
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password String
    Instance password.
    port Double
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role String
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnetId String
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmpSecretId String
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmpSecretKey String
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmpToken String
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniqDcgId String
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniqVpnGwId String
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user String
    Instance username.
    vpcId String
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account string
    Instance account.
    accountMode string
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    accountRole string
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccnGwId string
    CCN instance ID such as ccn-afp6kltc.
    cvmInstanceId string
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    dbKernel string
    Kernel version, such as the different kernel versions of MariaDB.
    engineVersion string
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host string
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instanceId string
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password string
    Instance password.
    port number
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role string
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnetId string
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmpSecretId string
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmpSecretKey string
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmpToken string
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniqDcgId string
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniqVpnGwId string
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user string
    Instance username.
    vpcId string
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account str
    Instance account.
    account_mode str
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    account_role str
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccn_gw_id str
    CCN instance ID such as ccn-afp6kltc.
    cvm_instance_id str
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    db_kernel str
    Kernel version, such as the different kernel versions of MariaDB.
    engine_version str
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host str
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instance_id str
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password str
    Instance password.
    port float
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role str
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnet_id str
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmp_secret_id str
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmp_secret_key str
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmp_token str
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniq_dcg_id str
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniq_vpn_gw_id str
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user str
    Instance username.
    vpc_id str
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account String
    Instance account.
    accountMode String
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    accountRole String
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccnGwId String
    CCN instance ID such as ccn-afp6kltc.
    cvmInstanceId String
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    dbKernel String
    Kernel version, such as the different kernel versions of MariaDB.
    engineVersion String
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host String
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instanceId String
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password String
    Instance password.
    port Number
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role String
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnetId String
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmpSecretId String
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmpSecretKey String
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmpToken String
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniqDcgId String
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniqVpnGwId String
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user String
    Instance username.
    vpcId String
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.

    DtsMigrateJobMigrateOption, DtsMigrateJobMigrateOptionArgs

    DatabaseTable DtsMigrateJobMigrateOptionDatabaseTable
    Migration object option, you need to tell the migration service which library table objects to migrate.
    Consistency DtsMigrateJobMigrateOptionConsistency
    Data consistency check option. Data consistency check is disabled by default.
    ExtraAttrs List<DtsMigrateJobMigrateOptionExtraAttr>
    Additional information. You can set additional parameters for certain database types.
    IsDstReadOnly bool
    Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: true, false. Default value: false.
    IsMigrateAccount bool
    Whether to migrate accounts.
    IsOverrideRoot bool
    Whether to use the Root account in the source database to overwrite that in the target database. Valid values: false, true. For database/table or structural migration, you should specify false. Note that this parameter takes effect only for OldDTS.
    MigrateType string
    Migration type. Valid values: full, structure, fullAndIncrement. Default value: fullAndIncrement.
    DatabaseTable DtsMigrateJobMigrateOptionDatabaseTable
    Migration object option, you need to tell the migration service which library table objects to migrate.
    Consistency DtsMigrateJobMigrateOptionConsistency
    Data consistency check option. Data consistency check is disabled by default.
    ExtraAttrs []DtsMigrateJobMigrateOptionExtraAttr
    Additional information. You can set additional parameters for certain database types.
    IsDstReadOnly bool
    Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: true, false. Default value: false.
    IsMigrateAccount bool
    Whether to migrate accounts.
    IsOverrideRoot bool
    Whether to use the Root account in the source database to overwrite that in the target database. Valid values: false, true. For database/table or structural migration, you should specify false. Note that this parameter takes effect only for OldDTS.
    MigrateType string
    Migration type. Valid values: full, structure, fullAndIncrement. Default value: fullAndIncrement.
    databaseTable DtsMigrateJobMigrateOptionDatabaseTable
    Migration object option, you need to tell the migration service which library table objects to migrate.
    consistency DtsMigrateJobMigrateOptionConsistency
    Data consistency check option. Data consistency check is disabled by default.
    extraAttrs List<DtsMigrateJobMigrateOptionExtraAttr>
    Additional information. You can set additional parameters for certain database types.
    isDstReadOnly Boolean
    Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: true, false. Default value: false.
    isMigrateAccount Boolean
    Whether to migrate accounts.
    isOverrideRoot Boolean
    Whether to use the Root account in the source database to overwrite that in the target database. Valid values: false, true. For database/table or structural migration, you should specify false. Note that this parameter takes effect only for OldDTS.
    migrateType String
    Migration type. Valid values: full, structure, fullAndIncrement. Default value: fullAndIncrement.
    databaseTable DtsMigrateJobMigrateOptionDatabaseTable
    Migration object option, you need to tell the migration service which library table objects to migrate.
    consistency DtsMigrateJobMigrateOptionConsistency
    Data consistency check option. Data consistency check is disabled by default.
    extraAttrs DtsMigrateJobMigrateOptionExtraAttr[]
    Additional information. You can set additional parameters for certain database types.
    isDstReadOnly boolean
    Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: true, false. Default value: false.
    isMigrateAccount boolean
    Whether to migrate accounts.
    isOverrideRoot boolean
    Whether to use the Root account in the source database to overwrite that in the target database. Valid values: false, true. For database/table or structural migration, you should specify false. Note that this parameter takes effect only for OldDTS.
    migrateType string
    Migration type. Valid values: full, structure, fullAndIncrement. Default value: fullAndIncrement.
    database_table DtsMigrateJobMigrateOptionDatabaseTable
    Migration object option, you need to tell the migration service which library table objects to migrate.
    consistency DtsMigrateJobMigrateOptionConsistency
    Data consistency check option. Data consistency check is disabled by default.
    extra_attrs Sequence[DtsMigrateJobMigrateOptionExtraAttr]
    Additional information. You can set additional parameters for certain database types.
    is_dst_read_only bool
    Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: true, false. Default value: false.
    is_migrate_account bool
    Whether to migrate accounts.
    is_override_root bool
    Whether to use the Root account in the source database to overwrite that in the target database. Valid values: false, true. For database/table or structural migration, you should specify false. Note that this parameter takes effect only for OldDTS.
    migrate_type str
    Migration type. Valid values: full, structure, fullAndIncrement. Default value: fullAndIncrement.
    databaseTable Property Map
    Migration object option, you need to tell the migration service which library table objects to migrate.
    consistency Property Map
    Data consistency check option. Data consistency check is disabled by default.
    extraAttrs List<Property Map>
    Additional information. You can set additional parameters for certain database types.
    isDstReadOnly Boolean
    Whether to set the target database to read-only during migration, which takes effect only for MySQL databases. Valid values: true, false. Default value: false.
    isMigrateAccount Boolean
    Whether to migrate accounts.
    isOverrideRoot Boolean
    Whether to use the Root account in the source database to overwrite that in the target database. Valid values: false, true. For database/table or structural migration, you should specify false. Note that this parameter takes effect only for OldDTS.
    migrateType String
    Migration type. Valid values: full, structure, fullAndIncrement. Default value: fullAndIncrement.

    DtsMigrateJobMigrateOptionConsistency, DtsMigrateJobMigrateOptionConsistencyArgs

    Mode string
    Data consistency check type. Valid values: full, noCheck, notConfigured.
    Mode string
    Data consistency check type. Valid values: full, noCheck, notConfigured.
    mode String
    Data consistency check type. Valid values: full, noCheck, notConfigured.
    mode string
    Data consistency check type. Valid values: full, noCheck, notConfigured.
    mode str
    Data consistency check type. Valid values: full, noCheck, notConfigured.
    mode String
    Data consistency check type. Valid values: full, noCheck, notConfigured.

    DtsMigrateJobMigrateOptionDatabaseTable, DtsMigrateJobMigrateOptionDatabaseTableArgs

    ObjectMode string
    Migration object type. Valid values: all, partial.
    AdvancedObjects List<string>
    Advanced object types, such as trigger, function, procedure, event. Note: If you want to migrate and synchronize advanced objects, the corresponding advanced object type should be included in this configuration.
    Databases List<DtsMigrateJobMigrateOptionDatabaseTableDatabase>
    Migration object, which is required if ObjectMode is partial.
    ObjectMode string
    Migration object type. Valid values: all, partial.
    AdvancedObjects []string
    Advanced object types, such as trigger, function, procedure, event. Note: If you want to migrate and synchronize advanced objects, the corresponding advanced object type should be included in this configuration.
    Databases []DtsMigrateJobMigrateOptionDatabaseTableDatabase
    Migration object, which is required if ObjectMode is partial.
    objectMode String
    Migration object type. Valid values: all, partial.
    advancedObjects List<String>
    Advanced object types, such as trigger, function, procedure, event. Note: If you want to migrate and synchronize advanced objects, the corresponding advanced object type should be included in this configuration.
    databases List<DtsMigrateJobMigrateOptionDatabaseTableDatabase>
    Migration object, which is required if ObjectMode is partial.
    objectMode string
    Migration object type. Valid values: all, partial.
    advancedObjects string[]
    Advanced object types, such as trigger, function, procedure, event. Note: If you want to migrate and synchronize advanced objects, the corresponding advanced object type should be included in this configuration.
    databases DtsMigrateJobMigrateOptionDatabaseTableDatabase[]
    Migration object, which is required if ObjectMode is partial.
    object_mode str
    Migration object type. Valid values: all, partial.
    advanced_objects Sequence[str]
    Advanced object types, such as trigger, function, procedure, event. Note: If you want to migrate and synchronize advanced objects, the corresponding advanced object type should be included in this configuration.
    databases Sequence[DtsMigrateJobMigrateOptionDatabaseTableDatabase]
    Migration object, which is required if ObjectMode is partial.
    objectMode String
    Migration object type. Valid values: all, partial.
    advancedObjects List<String>
    Advanced object types, such as trigger, function, procedure, event. Note: If you want to migrate and synchronize advanced objects, the corresponding advanced object type should be included in this configuration.
    databases List<Property Map>
    Migration object, which is required if ObjectMode is partial.

    DtsMigrateJobMigrateOptionDatabaseTableDatabase, DtsMigrateJobMigrateOptionDatabaseTableDatabaseArgs

    DbMode string
    Database selection mode, which is required if ObjectMode is partial. Valid values: all, partial.
    DbName string
    Name of the database to be migrated or synced, which is required if ObjectMode is partial.
    EventMode string
    Sync mode. Valid values: partial, all.
    Events List<string>
    This parameter is required if EventMode is partial.
    FunctionMode string
    Sync mode. Valid values: partial, all.
    Functions List<string>
    This parameter is required if FunctionMode is partial.
    NewDbName string
    Name of the database after migration or sync, which is the same as the source database name by default.
    NewSchemaName string
    Name of the schema after migration or sync.
    ProcedureMode string
    Sync mode. Valid values: partial, all.
    Procedures List<string>
    This parameter is required if ProcedureMode is partial.
    RoleMode string
    Role selection mode, which is exclusive to PostgreSQL. Valid values: all, partial.
    Roles List<DtsMigrateJobMigrateOptionDatabaseTableDatabaseRole>
    Role, which is exclusive to PostgreSQL and required if RoleMode is partial.
    SchemaMode string
    Schema selection mode. Valid values: all, partial.
    SchemaName string
    The schema to be migrated or synced.
    TableMode string
    Table selection mode, which is required if DBMode is partial. Valid values: all, partial.
    Tables List<DtsMigrateJobMigrateOptionDatabaseTableDatabaseTable>
    The set of table objects, which is required if TableMode is partial.
    TriggerMode string
    Sync mode. Valid values: partial, all.
    Triggers List<string>
    This parameter is required if TriggerMode is partial.
    ViewMode string
    View selection mode. Valid values: all, partial.
    Views List<DtsMigrateJobMigrateOptionDatabaseTableDatabaseView>
    The set of view objects, which is required if ViewMode is partial.
    DbMode string
    Database selection mode, which is required if ObjectMode is partial. Valid values: all, partial.
    DbName string
    Name of the database to be migrated or synced, which is required if ObjectMode is partial.
    EventMode string
    Sync mode. Valid values: partial, all.
    Events []string
    This parameter is required if EventMode is partial.
    FunctionMode string
    Sync mode. Valid values: partial, all.
    Functions []string
    This parameter is required if FunctionMode is partial.
    NewDbName string
    Name of the database after migration or sync, which is the same as the source database name by default.
    NewSchemaName string
    Name of the schema after migration or sync.
    ProcedureMode string
    Sync mode. Valid values: partial, all.
    Procedures []string
    This parameter is required if ProcedureMode is partial.
    RoleMode string
    Role selection mode, which is exclusive to PostgreSQL. Valid values: all, partial.
    Roles []DtsMigrateJobMigrateOptionDatabaseTableDatabaseRole
    Role, which is exclusive to PostgreSQL and required if RoleMode is partial.
    SchemaMode string
    Schema selection mode. Valid values: all, partial.
    SchemaName string
    The schema to be migrated or synced.
    TableMode string
    Table selection mode, which is required if DBMode is partial. Valid values: all, partial.
    Tables []DtsMigrateJobMigrateOptionDatabaseTableDatabaseTable
    The set of table objects, which is required if TableMode is partial.
    TriggerMode string
    Sync mode. Valid values: partial, all.
    Triggers []string
    This parameter is required if TriggerMode is partial.
    ViewMode string
    View selection mode. Valid values: all, partial.
    Views []DtsMigrateJobMigrateOptionDatabaseTableDatabaseView
    The set of view objects, which is required if ViewMode is partial.
    dbMode String
    Database selection mode, which is required if ObjectMode is partial. Valid values: all, partial.
    dbName String
    Name of the database to be migrated or synced, which is required if ObjectMode is partial.
    eventMode String
    Sync mode. Valid values: partial, all.
    events List<String>
    This parameter is required if EventMode is partial.
    functionMode String
    Sync mode. Valid values: partial, all.
    functions List<String>
    This parameter is required if FunctionMode is partial.
    newDbName String
    Name of the database after migration or sync, which is the same as the source database name by default.
    newSchemaName String
    Name of the schema after migration or sync.
    procedureMode String
    Sync mode. Valid values: partial, all.
    procedures List<String>
    This parameter is required if ProcedureMode is partial.
    roleMode String
    Role selection mode, which is exclusive to PostgreSQL. Valid values: all, partial.
    roles List<DtsMigrateJobMigrateOptionDatabaseTableDatabaseRole>
    Role, which is exclusive to PostgreSQL and required if RoleMode is partial.
    schemaMode String
    Schema selection mode. Valid values: all, partial.
    schemaName String
    The schema to be migrated or synced.
    tableMode String
    Table selection mode, which is required if DBMode is partial. Valid values: all, partial.
    tables List<DtsMigrateJobMigrateOptionDatabaseTableDatabaseTable>
    The set of table objects, which is required if TableMode is partial.
    triggerMode String
    Sync mode. Valid values: partial, all.
    triggers List<String>
    This parameter is required if TriggerMode is partial.
    viewMode String
    View selection mode. Valid values: all, partial.
    views List<DtsMigrateJobMigrateOptionDatabaseTableDatabaseView>
    The set of view objects, which is required if ViewMode is partial.
    dbMode string
    Database selection mode, which is required if ObjectMode is partial. Valid values: all, partial.
    dbName string
    Name of the database to be migrated or synced, which is required if ObjectMode is partial.
    eventMode string
    Sync mode. Valid values: partial, all.
    events string[]
    This parameter is required if EventMode is partial.
    functionMode string
    Sync mode. Valid values: partial, all.
    functions string[]
    This parameter is required if FunctionMode is partial.
    newDbName string
    Name of the database after migration or sync, which is the same as the source database name by default.
    newSchemaName string
    Name of the schema after migration or sync.
    procedureMode string
    Sync mode. Valid values: partial, all.
    procedures string[]
    This parameter is required if ProcedureMode is partial.
    roleMode string
    Role selection mode, which is exclusive to PostgreSQL. Valid values: all, partial.
    roles DtsMigrateJobMigrateOptionDatabaseTableDatabaseRole[]
    Role, which is exclusive to PostgreSQL and required if RoleMode is partial.
    schemaMode string
    Schema selection mode. Valid values: all, partial.
    schemaName string
    The schema to be migrated or synced.
    tableMode string
    Table selection mode, which is required if DBMode is partial. Valid values: all, partial.
    tables DtsMigrateJobMigrateOptionDatabaseTableDatabaseTable[]
    The set of table objects, which is required if TableMode is partial.
    triggerMode string
    Sync mode. Valid values: partial, all.
    triggers string[]
    This parameter is required if TriggerMode is partial.
    viewMode string
    View selection mode. Valid values: all, partial.
    views DtsMigrateJobMigrateOptionDatabaseTableDatabaseView[]
    The set of view objects, which is required if ViewMode is partial.
    db_mode str
    Database selection mode, which is required if ObjectMode is partial. Valid values: all, partial.
    db_name str
    Name of the database to be migrated or synced, which is required if ObjectMode is partial.
    event_mode str
    Sync mode. Valid values: partial, all.
    events Sequence[str]
    This parameter is required if EventMode is partial.
    function_mode str
    Sync mode. Valid values: partial, all.
    functions Sequence[str]
    This parameter is required if FunctionMode is partial.
    new_db_name str
    Name of the database after migration or sync, which is the same as the source database name by default.
    new_schema_name str
    Name of the schema after migration or sync.
    procedure_mode str
    Sync mode. Valid values: partial, all.
    procedures Sequence[str]
    This parameter is required if ProcedureMode is partial.
    role_mode str
    Role selection mode, which is exclusive to PostgreSQL. Valid values: all, partial.
    roles Sequence[DtsMigrateJobMigrateOptionDatabaseTableDatabaseRole]
    Role, which is exclusive to PostgreSQL and required if RoleMode is partial.
    schema_mode str
    Schema selection mode. Valid values: all, partial.
    schema_name str
    The schema to be migrated or synced.
    table_mode str
    Table selection mode, which is required if DBMode is partial. Valid values: all, partial.
    tables Sequence[DtsMigrateJobMigrateOptionDatabaseTableDatabaseTable]
    The set of table objects, which is required if TableMode is partial.
    trigger_mode str
    Sync mode. Valid values: partial, all.
    triggers Sequence[str]
    This parameter is required if TriggerMode is partial.
    view_mode str
    View selection mode. Valid values: all, partial.
    views Sequence[DtsMigrateJobMigrateOptionDatabaseTableDatabaseView]
    The set of view objects, which is required if ViewMode is partial.
    dbMode String
    Database selection mode, which is required if ObjectMode is partial. Valid values: all, partial.
    dbName String
    Name of the database to be migrated or synced, which is required if ObjectMode is partial.
    eventMode String
    Sync mode. Valid values: partial, all.
    events List<String>
    This parameter is required if EventMode is partial.
    functionMode String
    Sync mode. Valid values: partial, all.
    functions List<String>
    This parameter is required if FunctionMode is partial.
    newDbName String
    Name of the database after migration or sync, which is the same as the source database name by default.
    newSchemaName String
    Name of the schema after migration or sync.
    procedureMode String
    Sync mode. Valid values: partial, all.
    procedures List<String>
    This parameter is required if ProcedureMode is partial.
    roleMode String
    Role selection mode, which is exclusive to PostgreSQL. Valid values: all, partial.
    roles List<Property Map>
    Role, which is exclusive to PostgreSQL and required if RoleMode is partial.
    schemaMode String
    Schema selection mode. Valid values: all, partial.
    schemaName String
    The schema to be migrated or synced.
    tableMode String
    Table selection mode, which is required if DBMode is partial. Valid values: all, partial.
    tables List<Property Map>
    The set of table objects, which is required if TableMode is partial.
    triggerMode String
    Sync mode. Valid values: partial, all.
    triggers List<String>
    This parameter is required if TriggerMode is partial.
    viewMode String
    View selection mode. Valid values: all, partial.
    views List<Property Map>
    The set of view objects, which is required if ViewMode is partial.

    DtsMigrateJobMigrateOptionDatabaseTableDatabaseRole, DtsMigrateJobMigrateOptionDatabaseTableDatabaseRoleArgs

    NewRoleName string
    Role name after migration.
    RoleName string
    Role name.
    NewRoleName string
    Role name after migration.
    RoleName string
    Role name.
    newRoleName String
    Role name after migration.
    roleName String
    Role name.
    newRoleName string
    Role name after migration.
    roleName string
    Role name.
    new_role_name str
    Role name after migration.
    role_name str
    Role name.
    newRoleName String
    Role name after migration.
    roleName String
    Role name.

    DtsMigrateJobMigrateOptionDatabaseTableDatabaseTable, DtsMigrateJobMigrateOptionDatabaseTableDatabaseTableArgs

    NewTableName string
    New name of the migrated table. This parameter is required when TableEditMode is rename. It is mutually exclusive with TmpTables..
    TableEditMode string
    Table editing type. Valid values: rename (table mapping); pt (additional table sync).
    TableName string
    Name of the migrated table, which is case-sensitive.
    TmpTables List<string>
    The temp tables to be migrated. This parameter is mutually exclusive with NewTableName. It is valid only when the configured migration objects are table-level ones and TableEditMode is pt. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named 't1', configure this parameter as ['_t1_new','_t1_old']; to perform the gh-ost operation on t1, configure it as ['_t1_ghc','_t1_gho','_t1_del']. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.
    NewTableName string
    New name of the migrated table. This parameter is required when TableEditMode is rename. It is mutually exclusive with TmpTables..
    TableEditMode string
    Table editing type. Valid values: rename (table mapping); pt (additional table sync).
    TableName string
    Name of the migrated table, which is case-sensitive.
    TmpTables []string
    The temp tables to be migrated. This parameter is mutually exclusive with NewTableName. It is valid only when the configured migration objects are table-level ones and TableEditMode is pt. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named 't1', configure this parameter as ['_t1_new','_t1_old']; to perform the gh-ost operation on t1, configure it as ['_t1_ghc','_t1_gho','_t1_del']. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.
    newTableName String
    New name of the migrated table. This parameter is required when TableEditMode is rename. It is mutually exclusive with TmpTables..
    tableEditMode String
    Table editing type. Valid values: rename (table mapping); pt (additional table sync).
    tableName String
    Name of the migrated table, which is case-sensitive.
    tmpTables List<String>
    The temp tables to be migrated. This parameter is mutually exclusive with NewTableName. It is valid only when the configured migration objects are table-level ones and TableEditMode is pt. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named 't1', configure this parameter as ['_t1_new','_t1_old']; to perform the gh-ost operation on t1, configure it as ['_t1_ghc','_t1_gho','_t1_del']. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.
    newTableName string
    New name of the migrated table. This parameter is required when TableEditMode is rename. It is mutually exclusive with TmpTables..
    tableEditMode string
    Table editing type. Valid values: rename (table mapping); pt (additional table sync).
    tableName string
    Name of the migrated table, which is case-sensitive.
    tmpTables string[]
    The temp tables to be migrated. This parameter is mutually exclusive with NewTableName. It is valid only when the configured migration objects are table-level ones and TableEditMode is pt. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named 't1', configure this parameter as ['_t1_new','_t1_old']; to perform the gh-ost operation on t1, configure it as ['_t1_ghc','_t1_gho','_t1_del']. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.
    new_table_name str
    New name of the migrated table. This parameter is required when TableEditMode is rename. It is mutually exclusive with TmpTables..
    table_edit_mode str
    Table editing type. Valid values: rename (table mapping); pt (additional table sync).
    table_name str
    Name of the migrated table, which is case-sensitive.
    tmp_tables Sequence[str]
    The temp tables to be migrated. This parameter is mutually exclusive with NewTableName. It is valid only when the configured migration objects are table-level ones and TableEditMode is pt. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named 't1', configure this parameter as ['_t1_new','_t1_old']; to perform the gh-ost operation on t1, configure it as ['_t1_ghc','_t1_gho','_t1_del']. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.
    newTableName String
    New name of the migrated table. This parameter is required when TableEditMode is rename. It is mutually exclusive with TmpTables..
    tableEditMode String
    Table editing type. Valid values: rename (table mapping); pt (additional table sync).
    tableName String
    Name of the migrated table, which is case-sensitive.
    tmpTables List<String>
    The temp tables to be migrated. This parameter is mutually exclusive with NewTableName. It is valid only when the configured migration objects are table-level ones and TableEditMode is pt. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named 't1', configure this parameter as ['_t1_new','_t1_old']; to perform the gh-ost operation on t1, configure it as ['_t1_ghc','_t1_gho','_t1_del']. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time.

    DtsMigrateJobMigrateOptionDatabaseTableDatabaseView, DtsMigrateJobMigrateOptionDatabaseTableDatabaseViewArgs

    NewViewName string
    View name after migration.
    ViewName string
    View name.
    NewViewName string
    View name after migration.
    ViewName string
    View name.
    newViewName String
    View name after migration.
    viewName String
    View name.
    newViewName string
    View name after migration.
    viewName string
    View name.
    new_view_name str
    View name after migration.
    view_name str
    View name.
    newViewName String
    View name after migration.
    viewName String
    View name.

    DtsMigrateJobMigrateOptionExtraAttr, DtsMigrateJobMigrateOptionExtraAttrArgs

    Key string
    Option key.
    Value string
    Option value.
    Key string
    Option key.
    Value string
    Option value.
    key String
    Option key.
    value String
    Option value.
    key string
    Option key.
    value string
    Option value.
    key str
    Option key.
    value str
    Option value.
    key String
    Option key.
    value String
    Option value.

    DtsMigrateJobSrcInfo, DtsMigrateJobSrcInfoArgs

    AccessType string
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    DatabaseType string
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    Infos List<DtsMigrateJobSrcInfoInfo>
    Database information.
    NodeType string
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    Region string
    Instance region.
    ExtraAttrs List<DtsMigrateJobSrcInfoExtraAttr>
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin', 'AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    Supplier string
    Instance service provider, such as aliyun and others.
    AccessType string
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    DatabaseType string
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    Infos []DtsMigrateJobSrcInfoInfo
    Database information.
    NodeType string
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    Region string
    Instance region.
    ExtraAttrs []DtsMigrateJobSrcInfoExtraAttr
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin', 'AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    Supplier string
    Instance service provider, such as aliyun and others.
    accessType String
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    databaseType String
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos List<DtsMigrateJobSrcInfoInfo>
    Database information.
    nodeType String
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region String
    Instance region.
    extraAttrs List<DtsMigrateJobSrcInfoExtraAttr>
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin', 'AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier String
    Instance service provider, such as aliyun and others.
    accessType string
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    databaseType string
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos DtsMigrateJobSrcInfoInfo[]
    Database information.
    nodeType string
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region string
    Instance region.
    extraAttrs DtsMigrateJobSrcInfoExtraAttr[]
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin', 'AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier string
    Instance service provider, such as aliyun and others.
    access_type str
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    database_type str
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos Sequence[DtsMigrateJobSrcInfoInfo]
    Database information.
    node_type str
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region str
    Instance region.
    extra_attrs Sequence[DtsMigrateJobSrcInfoExtraAttr]
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin', 'AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier str
    Instance service provider, such as aliyun and others.
    accessType String
    Instances network access type. Valid values: extranet (public network); ipv6 (public IPv6); cvm (self-build on CVM); dcg (Direct Connect); vpncloud (VPN access); cdb (database); ccn (CCN); intranet (intranet); vpc (VPC). Note that the valid values are subject to the current link.
    databaseType String
    Database type, such as mysql, redis, mongodb, postgresql, mariadb, and percona.
    infos List<Property Map>
    Database information.
    nodeType String
    Node type, empty or simple indicates a general node, cluster indicates a cluster node; for mongo services, valid values: replicaset (mongodb replica set), standalone (mongodb single node), cluster (mongodb cluster); for redis instances, valid values: empty or simple (single node), cluster (cluster), cluster-cache (cache cluster), cluster-proxy (proxy cluster).
    region String
    Instance region.
    extraAttrs List<Property Map>
    For MongoDB, you can define the following parameters: ['AuthDatabase':'admin', 'AuthFlag': '1', 'AuthMechanism':'SCRAM-SHA-1'].
    supplier String
    Instance service provider, such as aliyun and others.

    DtsMigrateJobSrcInfoExtraAttr, DtsMigrateJobSrcInfoExtraAttrArgs

    Key string
    Option key.
    Value string
    Option value.
    Key string
    Option key.
    Value string
    Option value.
    key String
    Option key.
    value String
    Option value.
    key string
    Option key.
    value string
    Option value.
    key str
    Option key.
    value str
    Option value.
    key String
    Option key.
    value String
    Option value.

    DtsMigrateJobSrcInfoInfo, DtsMigrateJobSrcInfoInfoArgs

    Account string
    Instance account.
    AccountMode string
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    AccountRole string
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    CcnGwId string
    CCN instance ID such as ccn-afp6kltc.
    CvmInstanceId string
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    DbKernel string
    Kernel version, such as the different kernel versions of MariaDB.
    EngineVersion string
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    Host string
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    InstanceId string
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    Password string
    Instance password.
    Port double
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    Role string
    Node role in a distributed database, such as the mongos node in MongoDB.
    SubnetId string
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    TmpSecretId string
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    TmpSecretKey string
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    TmpToken string
    Temporary token, you can obtain the temporary key by GetFederationToken.
    UniqDcgId string
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    UniqVpnGwId string
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    User string
    Instance username.
    VpcId string
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    Account string
    Instance account.
    AccountMode string
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    AccountRole string
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    CcnGwId string
    CCN instance ID such as ccn-afp6kltc.
    CvmInstanceId string
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    DbKernel string
    Kernel version, such as the different kernel versions of MariaDB.
    EngineVersion string
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    Host string
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    InstanceId string
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    Password string
    Instance password.
    Port float64
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    Role string
    Node role in a distributed database, such as the mongos node in MongoDB.
    SubnetId string
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    TmpSecretId string
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    TmpSecretKey string
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    TmpToken string
    Temporary token, you can obtain the temporary key by GetFederationToken.
    UniqDcgId string
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    UniqVpnGwId string
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    User string
    Instance username.
    VpcId string
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account String
    Instance account.
    accountMode String
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    accountRole String
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccnGwId String
    CCN instance ID such as ccn-afp6kltc.
    cvmInstanceId String
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    dbKernel String
    Kernel version, such as the different kernel versions of MariaDB.
    engineVersion String
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host String
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instanceId String
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password String
    Instance password.
    port Double
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role String
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnetId String
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmpSecretId String
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmpSecretKey String
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmpToken String
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniqDcgId String
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniqVpnGwId String
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user String
    Instance username.
    vpcId String
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account string
    Instance account.
    accountMode string
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    accountRole string
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccnGwId string
    CCN instance ID such as ccn-afp6kltc.
    cvmInstanceId string
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    dbKernel string
    Kernel version, such as the different kernel versions of MariaDB.
    engineVersion string
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host string
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instanceId string
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password string
    Instance password.
    port number
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role string
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnetId string
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmpSecretId string
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmpSecretKey string
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmpToken string
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniqDcgId string
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniqVpnGwId string
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user string
    Instance username.
    vpcId string
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account str
    Instance account.
    account_mode str
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    account_role str
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccn_gw_id str
    CCN instance ID such as ccn-afp6kltc.
    cvm_instance_id str
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    db_kernel str
    Kernel version, such as the different kernel versions of MariaDB.
    engine_version str
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host str
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instance_id str
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password str
    Instance password.
    port float
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role str
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnet_id str
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmp_secret_id str
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmp_secret_key str
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmp_token str
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniq_dcg_id str
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniq_vpn_gw_id str
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user str
    Instance username.
    vpc_id str
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    account String
    Instance account.
    accountMode String
    The account to which the resource belongs. Valid values: empty or self (the current account); other (another account).
    accountRole String
    The role used for cross-account migration, which can contain [a-zA-Z0-9-_]+.
    ccnGwId String
    CCN instance ID such as ccn-afp6kltc.
    cvmInstanceId String
    Short CVM instance ID in the format of ins-olgl39y8, which is required if the access type is cvm. It is the same as the instance ID displayed in the CVM console.
    dbKernel String
    Kernel version, such as the different kernel versions of MariaDB.
    engineVersion String
    Database version in the format of 5.6 or 5.7, which takes effect only if the instance is an RDS instance. Default value: 5.6.
    host String
    Instance IP address, which is required for the following access types: public network, Direct Connect, VPN, CCN, intranet, and VPC.
    instanceId String
    Database instance ID in the format of cdb-powiqx8q, which is required if the access type is cdb.
    password String
    Instance password.
    port Number
    Instance port, which is required for the following access types: public network, self-build on CVM, Direct Connect, VPN, CCN, intranet, and VPC.
    role String
    Node role in a distributed database, such as the mongos node in MongoDB.
    subnetId String
    ID of the subnet in the VPC in the format of subnet-3paxmkdz, which is required if the access type is vpc, vpncloud, ccn, or dcg.
    tmpSecretId String
    Temporary SecretId, you can obtain the temporary key by GetFederationToken.
    tmpSecretKey String
    Temporary SecretKey, you can obtain the temporary key by GetFederationToken.
    tmpToken String
    Temporary token, you can obtain the temporary key by GetFederationToken.
    uniqDcgId String
    Direct Connect gateway ID in the format of dcg-0rxtqqxb, which is required if the access type is dcg.
    uniqVpnGwId String
    VPN gateway ID in the format of vpngw-9ghexg7q, which is required if the access type is vpncloud.
    user String
    Instance username.
    vpcId String
    VPC ID in the format of vpc-92jblxto, which is required if the access type is vpc, vpncloud, ccn, or dcg.

    Import

    DTS migrate job can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dtsMigrateJob:DtsMigrateJob example dts-iy98oxba
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.185 published on Wednesday, Apr 23, 2025 by tencentcloudstack