1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DtsSyncConfig
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.DtsSyncConfig

Explore with Pulumi AI

Provides a resource to create a dts sync_config

Example Usage

Sync mysql database to cynosdb through cdb access type

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.CynosdbCluster("foo", {
    availableZone: _var.availability_zone,
    vpcId: local.vpc_id,
    subnetId: local.subnet_id,
    dbType: "MYSQL",
    dbVersion: "5.7",
    storageLimit: 1000,
    clusterName: "tf-cynosdb-mysql-sync-dst",
    password: "*",
    instanceMaintainDuration: 3600,
    instanceMaintainStartTime: 10800,
    instanceMaintainWeekdays: [
        "Fri",
        "Mon",
        "Sat",
        "Sun",
        "Thu",
        "Wed",
        "Tue",
    ],
    instanceCpuCore: 1,
    instanceMemorySize: 2,
    paramItems: [
        {
            name: "character_set_server",
            currentValue: "utf8",
        },
        {
            name: "time_zone",
            currentValue: "+09:00",
        },
        {
            name: "lower_case_table_names",
            currentValue: "1",
        },
    ],
    forceDelete: true,
    rwGroupSgs: [local.sg_id],
    roGroupSgs: [local.sg_id],
    prarmTemplateId: _var.my_param_template,
});
const syncJob = new tencentcloud.DtsSyncJob("syncJob", {
    payMode: "PostPay",
    srcDatabaseType: "mysql",
    srcRegion: "ap-guangzhou",
    dstDatabaseType: "cynosdbmysql",
    dstRegion: "ap-guangzhou",
    tags: [{
        tagKey: "aaa",
        tagValue: "bbb",
    }],
    autoRenew: 0,
    instanceClass: "micro",
});
const syncConfig = new tencentcloud.DtsSyncConfig("syncConfig", {
    jobId: syncJob.jobId,
    srcAccessType: "cdb",
    dstAccessType: "cdb",
    jobName: "tf_test_sync_config",
    jobMode: "liteMode",
    runMode: "Immediate",
    objects: {
        mode: "Partial",
        databases: [{
            dbName: "tf_ci_test",
            newDbName: "tf_ci_test_new",
            dbMode: "Partial",
            tableMode: "All",
            tables: [{
                tableName: "test",
                newTableName: "test_new",
            }],
        }],
    },
    srcInfo: {
        region: "ap-guangzhou",
        instanceId: "cdb-fitq5t9h",
        user: "your_user_name",
        password: "*",
        dbName: "tf_ci_test",
        vpcId: local.vpc_id,
        subnetId: local.subnet_id,
    },
    dstInfo: {
        region: "ap-guangzhou",
        instanceId: foo.cynosdbClusterId,
        user: "root",
        password: "*",
        dbName: "tf_ci_test_new",
        vpcId: local.vpc_id,
        subnetId: local.subnet_id,
    },
    autoRetryTimeRangeMinutes: 0,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.CynosdbCluster("foo",
    available_zone=var["availability_zone"],
    vpc_id=local["vpc_id"],
    subnet_id=local["subnet_id"],
    db_type="MYSQL",
    db_version="5.7",
    storage_limit=1000,
    cluster_name="tf-cynosdb-mysql-sync-dst",
    password="*",
    instance_maintain_duration=3600,
    instance_maintain_start_time=10800,
    instance_maintain_weekdays=[
        "Fri",
        "Mon",
        "Sat",
        "Sun",
        "Thu",
        "Wed",
        "Tue",
    ],
    instance_cpu_core=1,
    instance_memory_size=2,
    param_items=[
        {
            "name": "character_set_server",
            "current_value": "utf8",
        },
        {
            "name": "time_zone",
            "current_value": "+09:00",
        },
        {
            "name": "lower_case_table_names",
            "current_value": "1",
        },
    ],
    force_delete=True,
    rw_group_sgs=[local["sg_id"]],
    ro_group_sgs=[local["sg_id"]],
    prarm_template_id=var["my_param_template"])
sync_job = tencentcloud.DtsSyncJob("syncJob",
    pay_mode="PostPay",
    src_database_type="mysql",
    src_region="ap-guangzhou",
    dst_database_type="cynosdbmysql",
    dst_region="ap-guangzhou",
    tags=[{
        "tag_key": "aaa",
        "tag_value": "bbb",
    }],
    auto_renew=0,
    instance_class="micro")
sync_config = tencentcloud.DtsSyncConfig("syncConfig",
    job_id=sync_job.job_id,
    src_access_type="cdb",
    dst_access_type="cdb",
    job_name="tf_test_sync_config",
    job_mode="liteMode",
    run_mode="Immediate",
    objects={
        "mode": "Partial",
        "databases": [{
            "db_name": "tf_ci_test",
            "new_db_name": "tf_ci_test_new",
            "db_mode": "Partial",
            "table_mode": "All",
            "tables": [{
                "table_name": "test",
                "new_table_name": "test_new",
            }],
        }],
    },
    src_info={
        "region": "ap-guangzhou",
        "instance_id": "cdb-fitq5t9h",
        "user": "your_user_name",
        "password": "*",
        "db_name": "tf_ci_test",
        "vpc_id": local["vpc_id"],
        "subnet_id": local["subnet_id"],
    },
    dst_info={
        "region": "ap-guangzhou",
        "instance_id": foo.cynosdb_cluster_id,
        "user": "root",
        "password": "*",
        "db_name": "tf_ci_test_new",
        "vpc_id": local["vpc_id"],
        "subnet_id": local["subnet_id"],
    },
    auto_retry_time_range_minutes=0)
Copy
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 {
		foo, err := tencentcloud.NewCynosdbCluster(ctx, "foo", &tencentcloud.CynosdbClusterArgs{
			AvailableZone:             pulumi.Any(_var.Availability_zone),
			VpcId:                     pulumi.Any(local.Vpc_id),
			SubnetId:                  pulumi.Any(local.Subnet_id),
			DbType:                    pulumi.String("MYSQL"),
			DbVersion:                 pulumi.String("5.7"),
			StorageLimit:              pulumi.Float64(1000),
			ClusterName:               pulumi.String("tf-cynosdb-mysql-sync-dst"),
			Password:                  pulumi.String("*"),
			InstanceMaintainDuration:  pulumi.Float64(3600),
			InstanceMaintainStartTime: pulumi.Float64(10800),
			InstanceMaintainWeekdays: pulumi.StringArray{
				pulumi.String("Fri"),
				pulumi.String("Mon"),
				pulumi.String("Sat"),
				pulumi.String("Sun"),
				pulumi.String("Thu"),
				pulumi.String("Wed"),
				pulumi.String("Tue"),
			},
			InstanceCpuCore:    pulumi.Float64(1),
			InstanceMemorySize: pulumi.Float64(2),
			ParamItems: tencentcloud.CynosdbClusterParamItemArray{
				&tencentcloud.CynosdbClusterParamItemArgs{
					Name:         pulumi.String("character_set_server"),
					CurrentValue: pulumi.String("utf8"),
				},
				&tencentcloud.CynosdbClusterParamItemArgs{
					Name:         pulumi.String("time_zone"),
					CurrentValue: pulumi.String("+09:00"),
				},
				&tencentcloud.CynosdbClusterParamItemArgs{
					Name:         pulumi.String("lower_case_table_names"),
					CurrentValue: pulumi.String("1"),
				},
			},
			ForceDelete: pulumi.Bool(true),
			RwGroupSgs: pulumi.StringArray{
				local.Sg_id,
			},
			RoGroupSgs: pulumi.StringArray{
				local.Sg_id,
			},
			PrarmTemplateId: pulumi.Any(_var.My_param_template),
		})
		if err != nil {
			return err
		}
		syncJob, err := tencentcloud.NewDtsSyncJob(ctx, "syncJob", &tencentcloud.DtsSyncJobArgs{
			PayMode:         pulumi.String("PostPay"),
			SrcDatabaseType: pulumi.String("mysql"),
			SrcRegion:       pulumi.String("ap-guangzhou"),
			DstDatabaseType: pulumi.String("cynosdbmysql"),
			DstRegion:       pulumi.String("ap-guangzhou"),
			Tags: tencentcloud.DtsSyncJobTagArray{
				&tencentcloud.DtsSyncJobTagArgs{
					TagKey:   pulumi.String("aaa"),
					TagValue: pulumi.String("bbb"),
				},
			},
			AutoRenew:     pulumi.Float64(0),
			InstanceClass: pulumi.String("micro"),
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewDtsSyncConfig(ctx, "syncConfig", &tencentcloud.DtsSyncConfigArgs{
			JobId:         syncJob.JobId,
			SrcAccessType: pulumi.String("cdb"),
			DstAccessType: pulumi.String("cdb"),
			JobName:       pulumi.String("tf_test_sync_config"),
			JobMode:       pulumi.String("liteMode"),
			RunMode:       pulumi.String("Immediate"),
			Objects: &tencentcloud.DtsSyncConfigObjectsArgs{
				Mode: pulumi.String("Partial"),
				Databases: tencentcloud.DtsSyncConfigObjectsDatabaseArray{
					&tencentcloud.DtsSyncConfigObjectsDatabaseArgs{
						DbName:    pulumi.String("tf_ci_test"),
						NewDbName: pulumi.String("tf_ci_test_new"),
						DbMode:    pulumi.String("Partial"),
						TableMode: pulumi.String("All"),
						Tables: tencentcloud.DtsSyncConfigObjectsDatabaseTableArray{
							&tencentcloud.DtsSyncConfigObjectsDatabaseTableArgs{
								TableName:    pulumi.String("test"),
								NewTableName: pulumi.String("test_new"),
							},
						},
					},
				},
			},
			SrcInfo: &tencentcloud.DtsSyncConfigSrcInfoArgs{
				Region:     pulumi.String("ap-guangzhou"),
				InstanceId: pulumi.String("cdb-fitq5t9h"),
				User:       pulumi.String("your_user_name"),
				Password:   pulumi.String("*"),
				DbName:     pulumi.String("tf_ci_test"),
				VpcId:      pulumi.Any(local.Vpc_id),
				SubnetId:   pulumi.Any(local.Subnet_id),
			},
			DstInfo: &tencentcloud.DtsSyncConfigDstInfoArgs{
				Region:     pulumi.String("ap-guangzhou"),
				InstanceId: foo.CynosdbClusterId,
				User:       pulumi.String("root"),
				Password:   pulumi.String("*"),
				DbName:     pulumi.String("tf_ci_test_new"),
				VpcId:      pulumi.Any(local.Vpc_id),
				SubnetId:   pulumi.Any(local.Subnet_id),
			},
			AutoRetryTimeRangeMinutes: pulumi.Float64(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.CynosdbCluster("foo", new()
    {
        AvailableZone = @var.Availability_zone,
        VpcId = local.Vpc_id,
        SubnetId = local.Subnet_id,
        DbType = "MYSQL",
        DbVersion = "5.7",
        StorageLimit = 1000,
        ClusterName = "tf-cynosdb-mysql-sync-dst",
        Password = "*",
        InstanceMaintainDuration = 3600,
        InstanceMaintainStartTime = 10800,
        InstanceMaintainWeekdays = new[]
        {
            "Fri",
            "Mon",
            "Sat",
            "Sun",
            "Thu",
            "Wed",
            "Tue",
        },
        InstanceCpuCore = 1,
        InstanceMemorySize = 2,
        ParamItems = new[]
        {
            new Tencentcloud.Inputs.CynosdbClusterParamItemArgs
            {
                Name = "character_set_server",
                CurrentValue = "utf8",
            },
            new Tencentcloud.Inputs.CynosdbClusterParamItemArgs
            {
                Name = "time_zone",
                CurrentValue = "+09:00",
            },
            new Tencentcloud.Inputs.CynosdbClusterParamItemArgs
            {
                Name = "lower_case_table_names",
                CurrentValue = "1",
            },
        },
        ForceDelete = true,
        RwGroupSgs = new[]
        {
            local.Sg_id,
        },
        RoGroupSgs = new[]
        {
            local.Sg_id,
        },
        PrarmTemplateId = @var.My_param_template,
    });

    var syncJob = new Tencentcloud.DtsSyncJob("syncJob", new()
    {
        PayMode = "PostPay",
        SrcDatabaseType = "mysql",
        SrcRegion = "ap-guangzhou",
        DstDatabaseType = "cynosdbmysql",
        DstRegion = "ap-guangzhou",
        Tags = new[]
        {
            new Tencentcloud.Inputs.DtsSyncJobTagArgs
            {
                TagKey = "aaa",
                TagValue = "bbb",
            },
        },
        AutoRenew = 0,
        InstanceClass = "micro",
    });

    var syncConfig = new Tencentcloud.DtsSyncConfig("syncConfig", new()
    {
        JobId = syncJob.JobId,
        SrcAccessType = "cdb",
        DstAccessType = "cdb",
        JobName = "tf_test_sync_config",
        JobMode = "liteMode",
        RunMode = "Immediate",
        Objects = new Tencentcloud.Inputs.DtsSyncConfigObjectsArgs
        {
            Mode = "Partial",
            Databases = new[]
            {
                new Tencentcloud.Inputs.DtsSyncConfigObjectsDatabaseArgs
                {
                    DbName = "tf_ci_test",
                    NewDbName = "tf_ci_test_new",
                    DbMode = "Partial",
                    TableMode = "All",
                    Tables = new[]
                    {
                        new Tencentcloud.Inputs.DtsSyncConfigObjectsDatabaseTableArgs
                        {
                            TableName = "test",
                            NewTableName = "test_new",
                        },
                    },
                },
            },
        },
        SrcInfo = new Tencentcloud.Inputs.DtsSyncConfigSrcInfoArgs
        {
            Region = "ap-guangzhou",
            InstanceId = "cdb-fitq5t9h",
            User = "your_user_name",
            Password = "*",
            DbName = "tf_ci_test",
            VpcId = local.Vpc_id,
            SubnetId = local.Subnet_id,
        },
        DstInfo = new Tencentcloud.Inputs.DtsSyncConfigDstInfoArgs
        {
            Region = "ap-guangzhou",
            InstanceId = foo.CynosdbClusterId,
            User = "root",
            Password = "*",
            DbName = "tf_ci_test_new",
            VpcId = local.Vpc_id,
            SubnetId = local.Subnet_id,
        },
        AutoRetryTimeRangeMinutes = 0,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbCluster;
import com.pulumi.tencentcloud.CynosdbClusterArgs;
import com.pulumi.tencentcloud.inputs.CynosdbClusterParamItemArgs;
import com.pulumi.tencentcloud.DtsSyncJob;
import com.pulumi.tencentcloud.DtsSyncJobArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncJobTagArgs;
import com.pulumi.tencentcloud.DtsSyncConfig;
import com.pulumi.tencentcloud.DtsSyncConfigArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncConfigObjectsArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncConfigSrcInfoArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncConfigDstInfoArgs;
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 foo = new CynosdbCluster("foo", CynosdbClusterArgs.builder()
            .availableZone(var_.availability_zone())
            .vpcId(local.vpc_id())
            .subnetId(local.subnet_id())
            .dbType("MYSQL")
            .dbVersion("5.7")
            .storageLimit(1000)
            .clusterName("tf-cynosdb-mysql-sync-dst")
            .password("*")
            .instanceMaintainDuration(3600)
            .instanceMaintainStartTime(10800)
            .instanceMaintainWeekdays(            
                "Fri",
                "Mon",
                "Sat",
                "Sun",
                "Thu",
                "Wed",
                "Tue")
            .instanceCpuCore(1)
            .instanceMemorySize(2)
            .paramItems(            
                CynosdbClusterParamItemArgs.builder()
                    .name("character_set_server")
                    .currentValue("utf8")
                    .build(),
                CynosdbClusterParamItemArgs.builder()
                    .name("time_zone")
                    .currentValue("+09:00")
                    .build(),
                CynosdbClusterParamItemArgs.builder()
                    .name("lower_case_table_names")
                    .currentValue("1")
                    .build())
            .forceDelete(true)
            .rwGroupSgs(local.sg_id())
            .roGroupSgs(local.sg_id())
            .prarmTemplateId(var_.my_param_template())
            .build());

        var syncJob = new DtsSyncJob("syncJob", DtsSyncJobArgs.builder()
            .payMode("PostPay")
            .srcDatabaseType("mysql")
            .srcRegion("ap-guangzhou")
            .dstDatabaseType("cynosdbmysql")
            .dstRegion("ap-guangzhou")
            .tags(DtsSyncJobTagArgs.builder()
                .tagKey("aaa")
                .tagValue("bbb")
                .build())
            .autoRenew(0)
            .instanceClass("micro")
            .build());

        var syncConfig = new DtsSyncConfig("syncConfig", DtsSyncConfigArgs.builder()
            .jobId(syncJob.jobId())
            .srcAccessType("cdb")
            .dstAccessType("cdb")
            .jobName("tf_test_sync_config")
            .jobMode("liteMode")
            .runMode("Immediate")
            .objects(DtsSyncConfigObjectsArgs.builder()
                .mode("Partial")
                .databases(DtsSyncConfigObjectsDatabaseArgs.builder()
                    .dbName("tf_ci_test")
                    .newDbName("tf_ci_test_new")
                    .dbMode("Partial")
                    .tableMode("All")
                    .tables(DtsSyncConfigObjectsDatabaseTableArgs.builder()
                        .tableName("test")
                        .newTableName("test_new")
                        .build())
                    .build())
                .build())
            .srcInfo(DtsSyncConfigSrcInfoArgs.builder()
                .region("ap-guangzhou")
                .instanceId("cdb-fitq5t9h")
                .user("your_user_name")
                .password("*")
                .dbName("tf_ci_test")
                .vpcId(local.vpc_id())
                .subnetId(local.subnet_id())
                .build())
            .dstInfo(DtsSyncConfigDstInfoArgs.builder()
                .region("ap-guangzhou")
                .instanceId(foo.cynosdbClusterId())
                .user("root")
                .password("*")
                .dbName("tf_ci_test_new")
                .vpcId(local.vpc_id())
                .subnetId(local.subnet_id())
                .build())
            .autoRetryTimeRangeMinutes(0)
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:CynosdbCluster
    properties:
      availableZone: ${var.availability_zone}
      vpcId: ${local.vpc_id}
      subnetId: ${local.subnet_id}
      dbType: MYSQL
      dbVersion: '5.7'
      storageLimit: 1000
      clusterName: tf-cynosdb-mysql-sync-dst
      password: '*'
      instanceMaintainDuration: 3600
      instanceMaintainStartTime: 10800
      instanceMaintainWeekdays:
        - Fri
        - Mon
        - Sat
        - Sun
        - Thu
        - Wed
        - Tue
      instanceCpuCore: 1
      instanceMemorySize: 2
      paramItems:
        - name: character_set_server
          currentValue: utf8
        - name: time_zone
          currentValue: +09:00
        - name: lower_case_table_names
          currentValue: '1'
      forceDelete: true
      rwGroupSgs:
        - ${local.sg_id}
      roGroupSgs:
        - ${local.sg_id}
      prarmTemplateId: ${var.my_param_template}
  syncJob:
    type: tencentcloud:DtsSyncJob
    properties:
      payMode: PostPay
      srcDatabaseType: mysql
      srcRegion: ap-guangzhou
      dstDatabaseType: cynosdbmysql
      dstRegion: ap-guangzhou
      tags:
        - tagKey: aaa
          tagValue: bbb
      autoRenew: 0
      instanceClass: micro
  syncConfig:
    type: tencentcloud:DtsSyncConfig
    properties:
      jobId: ${syncJob.jobId}
      srcAccessType: cdb
      dstAccessType: cdb
      jobName: tf_test_sync_config
      jobMode: liteMode
      runMode: Immediate
      objects:
        mode: Partial
        databases:
          - dbName: tf_ci_test
            newDbName: tf_ci_test_new
            dbMode: Partial
            tableMode: All
            tables:
              - tableName: test
                newTableName: test_new
      srcInfo:
        region: ap-guangzhou
        instanceId: cdb-fitq5t9h
        user: your_user_name
        password: '*'
        dbName: tf_ci_test
        vpcId: ${local.vpc_id}
        subnetId: ${local.subnet_id}
      dstInfo:
        region: ap-guangzhou
        instanceId: ${foo.cynosdbClusterId}
        user: root
        password: '*'
        dbName: tf_ci_test_new
        vpcId: ${local.vpc_id}
        subnetId: ${local.subnet_id}
      autoRetryTimeRangeMinutes: 0
Copy

Sync mysql database using CCN to route from ap-shanghai to ap-guangzhou

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const vpcIdSh = "vpc-evtcyb3g";
const subnetIdSh = "subnet-1t83cxkp";
const srcMysql = tencentcloud.getMysqlInstance({
    instanceName: "your_user_name_mysql_src",
});
const srcIp = srcMysql.then(srcMysql => srcMysql.instanceLists?.[0]?.intranetIp);
const srcPort = srcMysql.then(srcMysql => srcMysql.instanceLists?.[0]?.intranetPort);
const ccns = tencentcloud.getCcnInstances({
    name: "keep-ccn-dts-sh",
});
const ccnId = ccns.then(ccns => ccns.instanceLists?.[0]?.ccnId);
const dstMysql = tencentcloud.getMysqlInstance({
    instanceName: "your_user_name_mysql_src",
});
const dstMysqlId = dstMysql.then(dstMysql => dstMysql.instanceLists?.[0]?.mysqlId);
const config = new pulumi.Config();
const srcAzSh = config.get("srcAzSh") || "ap-shanghai";
const dstAzGz = config.get("dstAzGz") || "ap-guangzhou";
const syncJobs = tencentcloud.getDtsSyncJobs({
    jobName: "keep_sync_config_ccn_2_cdb",
});
const syncConfig = new tencentcloud.DtsSyncConfig("syncConfig", {
    jobId: syncJobs.then(syncJobs => syncJobs.lists?.[0]?.jobId),
    srcAccessType: "ccn",
    dstAccessType: "cdb",
    jobMode: "liteMode",
    runMode: "Immediate",
    objects: {
        mode: "Partial",
        databases: [{
            dbName: "tf_ci_test",
            newDbName: "tf_ci_test_new",
            dbMode: "Partial",
            tableMode: "All",
            tables: [{
                tableName: "test",
                newTableName: "test_new",
            }],
        }],
    },
    srcInfo: {
        region: srcAzSh,
        user: "your_user_name",
        password: "your_pass_word",
        ip: srcIp,
        port: srcPort,
        vpcId: vpcIdSh,
        subnetId: subnetIdSh,
        ccnId: ccnId,
        databaseNetEnv: "TencentVPC",
    },
    dstInfo: {
        region: dstAzGz,
        instanceId: dstMysqlId,
        user: "your_user_name",
        password: "your_pass_word",
    },
    autoRetryTimeRangeMinutes: 0,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

vpc_id_sh = "vpc-evtcyb3g"
subnet_id_sh = "subnet-1t83cxkp"
src_mysql = tencentcloud.get_mysql_instance(instance_name="your_user_name_mysql_src")
src_ip = src_mysql.instance_lists[0].intranet_ip
src_port = src_mysql.instance_lists[0].intranet_port
ccns = tencentcloud.get_ccn_instances(name="keep-ccn-dts-sh")
ccn_id = ccns.instance_lists[0].ccn_id
dst_mysql = tencentcloud.get_mysql_instance(instance_name="your_user_name_mysql_src")
dst_mysql_id = dst_mysql.instance_lists[0].mysql_id
config = pulumi.Config()
src_az_sh = config.get("srcAzSh")
if src_az_sh is None:
    src_az_sh = "ap-shanghai"
dst_az_gz = config.get("dstAzGz")
if dst_az_gz is None:
    dst_az_gz = "ap-guangzhou"
sync_jobs = tencentcloud.get_dts_sync_jobs(job_name="keep_sync_config_ccn_2_cdb")
sync_config = tencentcloud.DtsSyncConfig("syncConfig",
    job_id=sync_jobs.lists[0].job_id,
    src_access_type="ccn",
    dst_access_type="cdb",
    job_mode="liteMode",
    run_mode="Immediate",
    objects={
        "mode": "Partial",
        "databases": [{
            "db_name": "tf_ci_test",
            "new_db_name": "tf_ci_test_new",
            "db_mode": "Partial",
            "table_mode": "All",
            "tables": [{
                "table_name": "test",
                "new_table_name": "test_new",
            }],
        }],
    },
    src_info={
        "region": src_az_sh,
        "user": "your_user_name",
        "password": "your_pass_word",
        "ip": src_ip,
        "port": src_port,
        "vpc_id": vpc_id_sh,
        "subnet_id": subnet_id_sh,
        "ccn_id": ccn_id,
        "database_net_env": "TencentVPC",
    },
    dst_info={
        "region": dst_az_gz,
        "instance_id": dst_mysql_id,
        "user": "your_user_name",
        "password": "your_pass_word",
    },
    auto_retry_time_range_minutes=0)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vpcIdSh := "vpc-evtcyb3g"
		subnetIdSh := "subnet-1t83cxkp"
		srcMysql, err := tencentcloud.LookupMysqlInstance(ctx, &tencentcloud.LookupMysqlInstanceArgs{
			InstanceName: pulumi.StringRef("your_user_name_mysql_src"),
		}, nil)
		if err != nil {
			return err
		}
		srcIp := srcMysql.InstanceLists[0].IntranetIp
		srcPort := srcMysql.InstanceLists[0].IntranetPort
		ccns, err := tencentcloud.GetCcnInstances(ctx, &tencentcloud.GetCcnInstancesArgs{
			Name: pulumi.StringRef("keep-ccn-dts-sh"),
		}, nil)
		if err != nil {
			return err
		}
		ccnId := ccns.InstanceLists[0].CcnId
		dstMysql, err := tencentcloud.LookupMysqlInstance(ctx, &tencentcloud.LookupMysqlInstanceArgs{
			InstanceName: pulumi.StringRef("your_user_name_mysql_src"),
		}, nil)
		if err != nil {
			return err
		}
		dstMysqlId := dstMysql.InstanceLists[0].MysqlId
		cfg := config.New(ctx, "")
		srcAzSh := "ap-shanghai"
		if param := cfg.Get("srcAzSh"); param != "" {
			srcAzSh = param
		}
		dstAzGz := "ap-guangzhou"
		if param := cfg.Get("dstAzGz"); param != "" {
			dstAzGz = param
		}
		syncJobs, err := tencentcloud.GetDtsSyncJobs(ctx, &tencentcloud.GetDtsSyncJobsArgs{
			JobName: pulumi.StringRef("keep_sync_config_ccn_2_cdb"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewDtsSyncConfig(ctx, "syncConfig", &tencentcloud.DtsSyncConfigArgs{
			JobId:         pulumi.String(syncJobs.Lists[0].JobId),
			SrcAccessType: pulumi.String("ccn"),
			DstAccessType: pulumi.String("cdb"),
			JobMode:       pulumi.String("liteMode"),
			RunMode:       pulumi.String("Immediate"),
			Objects: &tencentcloud.DtsSyncConfigObjectsArgs{
				Mode: pulumi.String("Partial"),
				Databases: tencentcloud.DtsSyncConfigObjectsDatabaseArray{
					&tencentcloud.DtsSyncConfigObjectsDatabaseArgs{
						DbName:    pulumi.String("tf_ci_test"),
						NewDbName: pulumi.String("tf_ci_test_new"),
						DbMode:    pulumi.String("Partial"),
						TableMode: pulumi.String("All"),
						Tables: tencentcloud.DtsSyncConfigObjectsDatabaseTableArray{
							&tencentcloud.DtsSyncConfigObjectsDatabaseTableArgs{
								TableName:    pulumi.String("test"),
								NewTableName: pulumi.String("test_new"),
							},
						},
					},
				},
			},
			SrcInfo: &tencentcloud.DtsSyncConfigSrcInfoArgs{
				Region:         pulumi.String(srcAzSh),
				User:           pulumi.String("your_user_name"),
				Password:       pulumi.String("your_pass_word"),
				Ip:             pulumi.String(srcIp),
				Port:           pulumi.Float64(srcPort),
				VpcId:          pulumi.String(vpcIdSh),
				SubnetId:       pulumi.String(subnetIdSh),
				CcnId:          pulumi.String(ccnId),
				DatabaseNetEnv: pulumi.String("TencentVPC"),
			},
			DstInfo: &tencentcloud.DtsSyncConfigDstInfoArgs{
				Region:     pulumi.String(dstAzGz),
				InstanceId: pulumi.String(dstMysqlId),
				User:       pulumi.String("your_user_name"),
				Password:   pulumi.String("your_pass_word"),
			},
			AutoRetryTimeRangeMinutes: pulumi.Float64(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var vpcIdSh = "vpc-evtcyb3g";

    var subnetIdSh = "subnet-1t83cxkp";

    var srcMysql = Tencentcloud.GetMysqlInstance.Invoke(new()
    {
        InstanceName = "your_user_name_mysql_src",
    });

    var srcIp = srcMysql.Apply(getMysqlInstanceResult => getMysqlInstanceResult.InstanceLists[0]?.IntranetIp);

    var srcPort = srcMysql.Apply(getMysqlInstanceResult => getMysqlInstanceResult.InstanceLists[0]?.IntranetPort);

    var ccns = Tencentcloud.GetCcnInstances.Invoke(new()
    {
        Name = "keep-ccn-dts-sh",
    });

    var ccnId = ccns.Apply(getCcnInstancesResult => getCcnInstancesResult.InstanceLists[0]?.CcnId);

    var dstMysql = Tencentcloud.GetMysqlInstance.Invoke(new()
    {
        InstanceName = "your_user_name_mysql_src",
    });

    var dstMysqlId = dstMysql.Apply(getMysqlInstanceResult => getMysqlInstanceResult.InstanceLists[0]?.MysqlId);

    var config = new Config();
    var srcAzSh = config.Get("srcAzSh") ?? "ap-shanghai";
    var dstAzGz = config.Get("dstAzGz") ?? "ap-guangzhou";
    var syncJobs = Tencentcloud.GetDtsSyncJobs.Invoke(new()
    {
        JobName = "keep_sync_config_ccn_2_cdb",
    });

    var syncConfig = new Tencentcloud.DtsSyncConfig("syncConfig", new()
    {
        JobId = syncJobs.Apply(getDtsSyncJobsResult => getDtsSyncJobsResult.Lists[0]?.JobId),
        SrcAccessType = "ccn",
        DstAccessType = "cdb",
        JobMode = "liteMode",
        RunMode = "Immediate",
        Objects = new Tencentcloud.Inputs.DtsSyncConfigObjectsArgs
        {
            Mode = "Partial",
            Databases = new[]
            {
                new Tencentcloud.Inputs.DtsSyncConfigObjectsDatabaseArgs
                {
                    DbName = "tf_ci_test",
                    NewDbName = "tf_ci_test_new",
                    DbMode = "Partial",
                    TableMode = "All",
                    Tables = new[]
                    {
                        new Tencentcloud.Inputs.DtsSyncConfigObjectsDatabaseTableArgs
                        {
                            TableName = "test",
                            NewTableName = "test_new",
                        },
                    },
                },
            },
        },
        SrcInfo = new Tencentcloud.Inputs.DtsSyncConfigSrcInfoArgs
        {
            Region = srcAzSh,
            User = "your_user_name",
            Password = "your_pass_word",
            Ip = srcIp,
            Port = srcPort,
            VpcId = vpcIdSh,
            SubnetId = subnetIdSh,
            CcnId = ccnId,
            DatabaseNetEnv = "TencentVPC",
        },
        DstInfo = new Tencentcloud.Inputs.DtsSyncConfigDstInfoArgs
        {
            Region = dstAzGz,
            InstanceId = dstMysqlId,
            User = "your_user_name",
            Password = "your_pass_word",
        },
        AutoRetryTimeRangeMinutes = 0,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetMysqlInstanceArgs;
import com.pulumi.tencentcloud.inputs.GetCcnInstancesArgs;
import com.pulumi.tencentcloud.inputs.GetDtsSyncJobsArgs;
import com.pulumi.tencentcloud.DtsSyncConfig;
import com.pulumi.tencentcloud.DtsSyncConfigArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncConfigObjectsArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncConfigSrcInfoArgs;
import com.pulumi.tencentcloud.inputs.DtsSyncConfigDstInfoArgs;
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) {
        final var config = ctx.config();
        final var vpcIdSh = "vpc-evtcyb3g";

        final var subnetIdSh = "subnet-1t83cxkp";

        final var srcMysql = TencentcloudFunctions.getMysqlInstance(GetMysqlInstanceArgs.builder()
            .instanceName("your_user_name_mysql_src")
            .build());

        final var srcIp = srcMysql.applyValue(getMysqlInstanceResult -> getMysqlInstanceResult.instanceLists()[0].intranetIp());

        final var srcPort = srcMysql.applyValue(getMysqlInstanceResult -> getMysqlInstanceResult.instanceLists()[0].intranetPort());

        final var ccns = TencentcloudFunctions.getCcnInstances(GetCcnInstancesArgs.builder()
            .name("keep-ccn-dts-sh")
            .build());

        final var ccnId = ccns.applyValue(getCcnInstancesResult -> getCcnInstancesResult.instanceLists()[0].ccnId());

        final var dstMysql = TencentcloudFunctions.getMysqlInstance(GetMysqlInstanceArgs.builder()
            .instanceName("your_user_name_mysql_src")
            .build());

        final var dstMysqlId = dstMysql.applyValue(getMysqlInstanceResult -> getMysqlInstanceResult.instanceLists()[0].mysqlId());

        final var srcAzSh = config.get("srcAzSh").orElse("ap-shanghai");
        final var dstAzGz = config.get("dstAzGz").orElse("ap-guangzhou");
        final var syncJobs = TencentcloudFunctions.getDtsSyncJobs(GetDtsSyncJobsArgs.builder()
            .jobName("keep_sync_config_ccn_2_cdb")
            .build());

        var syncConfig = new DtsSyncConfig("syncConfig", DtsSyncConfigArgs.builder()
            .jobId(syncJobs.applyValue(getDtsSyncJobsResult -> getDtsSyncJobsResult.lists()[0].jobId()))
            .srcAccessType("ccn")
            .dstAccessType("cdb")
            .jobMode("liteMode")
            .runMode("Immediate")
            .objects(DtsSyncConfigObjectsArgs.builder()
                .mode("Partial")
                .databases(DtsSyncConfigObjectsDatabaseArgs.builder()
                    .dbName("tf_ci_test")
                    .newDbName("tf_ci_test_new")
                    .dbMode("Partial")
                    .tableMode("All")
                    .tables(DtsSyncConfigObjectsDatabaseTableArgs.builder()
                        .tableName("test")
                        .newTableName("test_new")
                        .build())
                    .build())
                .build())
            .srcInfo(DtsSyncConfigSrcInfoArgs.builder()
                .region(srcAzSh)
                .user("your_user_name")
                .password("your_pass_word")
                .ip(srcIp)
                .port(srcPort)
                .vpcId(vpcIdSh)
                .subnetId(subnetIdSh)
                .ccnId(ccnId)
                .databaseNetEnv("TencentVPC")
                .build())
            .dstInfo(DtsSyncConfigDstInfoArgs.builder()
                .region(dstAzGz)
                .instanceId(dstMysqlId)
                .user("your_user_name")
                .password("your_pass_word")
                .build())
            .autoRetryTimeRangeMinutes(0)
            .build());

    }
}
Copy
configuration:
  srcAzSh:
    type: string
    default: ap-shanghai
  dstAzGz:
    type: string
    default: ap-guangzhou
resources:
  syncConfig:
    type: tencentcloud:DtsSyncConfig
    properties:
      jobId: ${syncJobs.lists[0].jobId}
      srcAccessType: ccn
      dstAccessType: cdb
      jobMode: liteMode
      runMode: Immediate
      objects:
        mode: Partial
        databases:
          - dbName: tf_ci_test
            newDbName: tf_ci_test_new
            dbMode: Partial
            tableMode: All
            tables:
              - tableName: test
                newTableName: test_new
      srcInfo:
        region: ${srcAzSh}
        user: your_user_name
        password: your_pass_word
        ip: ${srcIp}
        port: ${srcPort}
        vpcId: ${vpcIdSh}
        subnetId: ${subnetIdSh}
        ccnId: ${ccnId}
        databaseNetEnv: TencentVPC
      dstInfo:
        region: ${dstAzGz}
        instanceId: ${dstMysqlId}
        user: your_user_name
        password: your_pass_word
      autoRetryTimeRangeMinutes: 0
variables:
  vpcIdSh: vpc-evtcyb3g
  subnetIdSh: subnet-1t83cxkp
  srcIp: ${srcMysql.instanceLists[0].intranetIp}
  srcPort: ${srcMysql.instanceLists[0].intranetPort}
  ccnId: ${ccns.instanceLists[0].ccnId}
  dstMysqlId: ${dstMysql.instanceLists[0].mysqlId}
  syncJobs:
    fn::invoke:
      function: tencentcloud:getDtsSyncJobs
      arguments:
        jobName: keep_sync_config_ccn_2_cdb
  ccns:
    fn::invoke:
      function: tencentcloud:getCcnInstances
      arguments:
        name: keep-ccn-dts-sh
  srcMysql:
    fn::invoke:
      function: tencentcloud:getMysqlInstance
      arguments:
        instanceName: your_user_name_mysql_src
  dstMysql:
    fn::invoke:
      function: tencentcloud:getMysqlInstance
      arguments:
        instanceName: your_user_name_mysql_src
Copy

Create DtsSyncConfig Resource

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

Constructor syntax

new DtsSyncConfig(name: string, args: DtsSyncConfigArgs, opts?: CustomResourceOptions);
@overload
def DtsSyncConfig(resource_name: str,
                  args: DtsSyncConfigArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def DtsSyncConfig(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  job_id: Optional[str] = None,
                  dst_access_type: Optional[str] = None,
                  src_access_type: Optional[str] = None,
                  objects: Optional[DtsSyncConfigObjectsArgs] = None,
                  job_mode: Optional[str] = None,
                  expect_run_time: Optional[str] = None,
                  auto_retry_time_range_minutes: Optional[float] = None,
                  job_name: Optional[str] = None,
                  dts_sync_config_id: Optional[str] = None,
                  options: Optional[DtsSyncConfigOptionsArgs] = None,
                  run_mode: Optional[str] = None,
                  dst_info: Optional[DtsSyncConfigDstInfoArgs] = None,
                  src_info: Optional[DtsSyncConfigSrcInfoArgs] = None)
func NewDtsSyncConfig(ctx *Context, name string, args DtsSyncConfigArgs, opts ...ResourceOption) (*DtsSyncConfig, error)
public DtsSyncConfig(string name, DtsSyncConfigArgs args, CustomResourceOptions? opts = null)
public DtsSyncConfig(String name, DtsSyncConfigArgs args)
public DtsSyncConfig(String name, DtsSyncConfigArgs args, CustomResourceOptions options)
type: tencentcloud:DtsSyncConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

DtsSyncConfig 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 DtsSyncConfig resource accepts the following input properties:

DstAccessType This property is required. string
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
JobId This property is required. string
Synchronization instance id (i.e. identifies a synchronization job).
Objects This property is required. DtsSyncConfigObjects
Synchronize database table object information.
SrcAccessType This property is required. string
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
AutoRetryTimeRangeMinutes double
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
DstInfo DtsSyncConfigDstInfo
Target information, single-node database use.
DtsSyncConfigId string
ID of the resource.
ExpectRunTime string
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
JobMode string
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
JobName string
Sync job name.
Options DtsSyncConfigOptions
Sync Task Options.
RunMode string
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
SrcInfo DtsSyncConfigSrcInfo
Source information, single-node database use.
DstAccessType This property is required. string
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
JobId This property is required. string
Synchronization instance id (i.e. identifies a synchronization job).
Objects This property is required. DtsSyncConfigObjectsArgs
Synchronize database table object information.
SrcAccessType This property is required. string
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
AutoRetryTimeRangeMinutes float64
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
DstInfo DtsSyncConfigDstInfoArgs
Target information, single-node database use.
DtsSyncConfigId string
ID of the resource.
ExpectRunTime string
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
JobMode string
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
JobName string
Sync job name.
Options DtsSyncConfigOptionsArgs
Sync Task Options.
RunMode string
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
SrcInfo DtsSyncConfigSrcInfoArgs
Source information, single-node database use.
dstAccessType This property is required. String
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
jobId This property is required. String
Synchronization instance id (i.e. identifies a synchronization job).
objects This property is required. DtsSyncConfigObjects
Synchronize database table object information.
srcAccessType This property is required. String
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
autoRetryTimeRangeMinutes Double
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dstInfo DtsSyncConfigDstInfo
Target information, single-node database use.
dtsSyncConfigId String
ID of the resource.
expectRunTime String
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
jobMode String
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
jobName String
Sync job name.
options DtsSyncConfigOptions
Sync Task Options.
runMode String
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
srcInfo DtsSyncConfigSrcInfo
Source information, single-node database use.
dstAccessType This property is required. string
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
jobId This property is required. string
Synchronization instance id (i.e. identifies a synchronization job).
objects This property is required. DtsSyncConfigObjects
Synchronize database table object information.
srcAccessType This property is required. string
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
autoRetryTimeRangeMinutes number
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dstInfo DtsSyncConfigDstInfo
Target information, single-node database use.
dtsSyncConfigId string
ID of the resource.
expectRunTime string
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
jobMode string
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
jobName string
Sync job name.
options DtsSyncConfigOptions
Sync Task Options.
runMode string
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
srcInfo DtsSyncConfigSrcInfo
Source information, single-node database use.
dst_access_type This property is required. str
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
job_id This property is required. str
Synchronization instance id (i.e. identifies a synchronization job).
objects This property is required. DtsSyncConfigObjectsArgs
Synchronize database table object information.
src_access_type This property is required. str
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
auto_retry_time_range_minutes float
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dst_info DtsSyncConfigDstInfoArgs
Target information, single-node database use.
dts_sync_config_id str
ID of the resource.
expect_run_time str
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
job_mode str
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
job_name str
Sync job name.
options DtsSyncConfigOptionsArgs
Sync Task Options.
run_mode str
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
src_info DtsSyncConfigSrcInfoArgs
Source information, single-node database use.
dstAccessType This property is required. String
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
jobId This property is required. String
Synchronization instance id (i.e. identifies a synchronization job).
objects This property is required. Property Map
Synchronize database table object information.
srcAccessType This property is required. String
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
autoRetryTimeRangeMinutes Number
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dstInfo Property Map
Target information, single-node database use.
dtsSyncConfigId String
ID of the resource.
expectRunTime String
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
jobMode String
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
jobName String
Sync job name.
options Property Map
Sync Task Options.
runMode String
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
srcInfo Property Map
Source information, single-node database use.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing DtsSyncConfig Resource

Get an existing DtsSyncConfig 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?: DtsSyncConfigState, opts?: CustomResourceOptions): DtsSyncConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_retry_time_range_minutes: Optional[float] = None,
        dst_access_type: Optional[str] = None,
        dst_info: Optional[DtsSyncConfigDstInfoArgs] = None,
        dts_sync_config_id: Optional[str] = None,
        expect_run_time: Optional[str] = None,
        job_id: Optional[str] = None,
        job_mode: Optional[str] = None,
        job_name: Optional[str] = None,
        objects: Optional[DtsSyncConfigObjectsArgs] = None,
        options: Optional[DtsSyncConfigOptionsArgs] = None,
        run_mode: Optional[str] = None,
        src_access_type: Optional[str] = None,
        src_info: Optional[DtsSyncConfigSrcInfoArgs] = None) -> DtsSyncConfig
func GetDtsSyncConfig(ctx *Context, name string, id IDInput, state *DtsSyncConfigState, opts ...ResourceOption) (*DtsSyncConfig, error)
public static DtsSyncConfig Get(string name, Input<string> id, DtsSyncConfigState? state, CustomResourceOptions? opts = null)
public static DtsSyncConfig get(String name, Output<String> id, DtsSyncConfigState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:DtsSyncConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
DstAccessType string
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
DstInfo DtsSyncConfigDstInfo
Target information, single-node database use.
DtsSyncConfigId string
ID of the resource.
ExpectRunTime string
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
JobId string
Synchronization instance id (i.e. identifies a synchronization job).
JobMode string
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
JobName string
Sync job name.
Objects DtsSyncConfigObjects
Synchronize database table object information.
Options DtsSyncConfigOptions
Sync Task Options.
RunMode string
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
SrcAccessType string
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
SrcInfo DtsSyncConfigSrcInfo
Source information, single-node database use.
AutoRetryTimeRangeMinutes float64
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
DstAccessType string
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
DstInfo DtsSyncConfigDstInfoArgs
Target information, single-node database use.
DtsSyncConfigId string
ID of the resource.
ExpectRunTime string
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
JobId string
Synchronization instance id (i.e. identifies a synchronization job).
JobMode string
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
JobName string
Sync job name.
Objects DtsSyncConfigObjectsArgs
Synchronize database table object information.
Options DtsSyncConfigOptionsArgs
Sync Task Options.
RunMode string
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
SrcAccessType string
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
SrcInfo DtsSyncConfigSrcInfoArgs
Source information, single-node database use.
autoRetryTimeRangeMinutes Double
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dstAccessType String
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
dstInfo DtsSyncConfigDstInfo
Target information, single-node database use.
dtsSyncConfigId String
ID of the resource.
expectRunTime String
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
jobId String
Synchronization instance id (i.e. identifies a synchronization job).
jobMode String
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
jobName String
Sync job name.
objects DtsSyncConfigObjects
Synchronize database table object information.
options DtsSyncConfigOptions
Sync Task Options.
runMode String
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
srcAccessType String
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
srcInfo DtsSyncConfigSrcInfo
Source information, single-node database use.
autoRetryTimeRangeMinutes number
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dstAccessType string
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
dstInfo DtsSyncConfigDstInfo
Target information, single-node database use.
dtsSyncConfigId string
ID of the resource.
expectRunTime string
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
jobId string
Synchronization instance id (i.e. identifies a synchronization job).
jobMode string
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
jobName string
Sync job name.
objects DtsSyncConfigObjects
Synchronize database table object information.
options DtsSyncConfigOptions
Sync Task Options.
runMode string
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
srcAccessType string
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
srcInfo DtsSyncConfigSrcInfo
Source information, single-node database use.
auto_retry_time_range_minutes float
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dst_access_type str
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
dst_info DtsSyncConfigDstInfoArgs
Target information, single-node database use.
dts_sync_config_id str
ID of the resource.
expect_run_time str
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
job_id str
Synchronization instance id (i.e. identifies a synchronization job).
job_mode str
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
job_name str
Sync job name.
objects DtsSyncConfigObjectsArgs
Synchronize database table object information.
options DtsSyncConfigOptionsArgs
Sync Task Options.
run_mode str
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
src_access_type str
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
src_info DtsSyncConfigSrcInfoArgs
Source information, single-node database use.
autoRetryTimeRangeMinutes Number
The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
dstAccessType String
Target end access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
dstInfo Property Map
Target information, single-node database use.
dtsSyncConfigId String
ID of the resource.
expectRunTime String
Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
jobId String
Synchronization instance id (i.e. identifies a synchronization job).
jobMode String
The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
jobName String
Sync job name.
objects Property Map
Synchronize database table object information.
options Property Map
Sync Task Options.
runMode String
Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
srcAccessType String
Source access type, cdb (cloud database), cvm (cloud host self-built), vpc (private network), extranet (external network), vpncloud (vpn access), dcg (dedicated line access), ccn (cloud networking ), intranet (self-developed cloud), noProxy, note that the specific optional value depends on the current link.
srcInfo Property Map
Source information, single-node database use.

Supporting Types

DtsSyncConfigDstInfo
, DtsSyncConfigDstInfoArgs

Account string
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
AccountMode string
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
AccountRole string
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
CcnId string
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
CvmInstanceId string
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
DatabaseNetEnv string
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
DbKernel string
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
DbName string
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
EncryptConn string
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
EngineVersion string
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
InstanceId string
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
Ip string
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Password string
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
Port double
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Region string
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
Role string
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
RoleExternalId string
External role id. Note: This field may return null, indicating that no valid value can be obtained.
SubnetId string
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
Supplier string
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretId string
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretKey string
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpToken string
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
UniqDcgId string
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
UniqVpnGwId string
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
User string
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
VpcId string
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
Account string
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
AccountMode string
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
AccountRole string
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
CcnId string
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
CvmInstanceId string
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
DatabaseNetEnv string
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
DbKernel string
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
DbName string
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
EncryptConn string
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
EngineVersion string
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
InstanceId string
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
Ip string
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Password string
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
Port float64
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Region string
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
Role string
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
RoleExternalId string
External role id. Note: This field may return null, indicating that no valid value can be obtained.
SubnetId string
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
Supplier string
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretId string
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretKey string
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpToken string
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
UniqDcgId string
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
UniqVpnGwId string
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
User string
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
VpcId string
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account String
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
accountMode String
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
accountRole String
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccnId String
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvmInstanceId String
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
databaseNetEnv String
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
dbKernel String
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
dbName String
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encryptConn String
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engineVersion String
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instanceId String
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip String
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password String
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port Double
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region String
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role String
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
roleExternalId String
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnetId String
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier String
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretId String
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretKey String
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpToken String
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniqDcgId String
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniqVpnGwId String
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user String
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpcId String
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account string
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
accountMode string
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
accountRole string
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccnId string
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvmInstanceId string
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
databaseNetEnv string
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
dbKernel string
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
dbName string
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encryptConn string
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engineVersion string
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instanceId string
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip string
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password string
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port number
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region string
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role string
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
roleExternalId string
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnetId string
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier string
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretId string
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretKey string
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpToken string
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniqDcgId string
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniqVpnGwId string
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user string
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpcId string
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account str
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
account_mode str
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
account_role str
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccn_id str
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvm_instance_id str
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
database_net_env str
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
db_kernel str
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
db_name str
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encrypt_conn str
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engine_version str
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instance_id str
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip str
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password str
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port float
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region str
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role str
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
role_external_id str
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnet_id str
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier str
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmp_secret_id str
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmp_secret_key str
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmp_token str
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniq_dcg_id str
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniq_vpn_gw_id str
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user str
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpc_id str
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account String
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
accountMode String
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
accountRole String
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccnId String
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvmInstanceId String
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
databaseNetEnv String
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
dbKernel String
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
dbName String
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encryptConn String
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engineVersion String
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instanceId String
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip String
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password String
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port Number
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region String
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role String
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
roleExternalId String
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnetId String
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier String
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretId String
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretKey String
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpToken String
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniqDcgId String
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniqVpnGwId String
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user String
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpcId String
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigObjects
, DtsSyncConfigObjectsArgs

AdvancedObjects List<string>
For advanced object types, such as function and procedure, when an advanced object needs to be synchronized, the initialization type must include the structure initialization type, that is, the value of the Options.InitType field is Structure or Full. Note: This field may return null, indicating that no valid value can be obtained.
Databases List<DtsSyncConfigObjectsDatabase>
Synchronization object, not null when Mode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
Mode string
Migration object type Partial (partial object). Note: This field may return null, indicating that no valid value can be obtained.
OnlineDdl DtsSyncConfigObjectsOnlineDdl
OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
AdvancedObjects []string
For advanced object types, such as function and procedure, when an advanced object needs to be synchronized, the initialization type must include the structure initialization type, that is, the value of the Options.InitType field is Structure or Full. Note: This field may return null, indicating that no valid value can be obtained.
Databases []DtsSyncConfigObjectsDatabase
Synchronization object, not null when Mode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
Mode string
Migration object type Partial (partial object). Note: This field may return null, indicating that no valid value can be obtained.
OnlineDdl DtsSyncConfigObjectsOnlineDdl
OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
advancedObjects List<String>
For advanced object types, such as function and procedure, when an advanced object needs to be synchronized, the initialization type must include the structure initialization type, that is, the value of the Options.InitType field is Structure or Full. Note: This field may return null, indicating that no valid value can be obtained.
databases List<DtsSyncConfigObjectsDatabase>
Synchronization object, not null when Mode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
mode String
Migration object type Partial (partial object). Note: This field may return null, indicating that no valid value can be obtained.
onlineDdl DtsSyncConfigObjectsOnlineDdl
OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
advancedObjects string[]
For advanced object types, such as function and procedure, when an advanced object needs to be synchronized, the initialization type must include the structure initialization type, that is, the value of the Options.InitType field is Structure or Full. Note: This field may return null, indicating that no valid value can be obtained.
databases DtsSyncConfigObjectsDatabase[]
Synchronization object, not null when Mode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
mode string
Migration object type Partial (partial object). Note: This field may return null, indicating that no valid value can be obtained.
onlineDdl DtsSyncConfigObjectsOnlineDdl
OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
advanced_objects Sequence[str]
For advanced object types, such as function and procedure, when an advanced object needs to be synchronized, the initialization type must include the structure initialization type, that is, the value of the Options.InitType field is Structure or Full. Note: This field may return null, indicating that no valid value can be obtained.
databases Sequence[DtsSyncConfigObjectsDatabase]
Synchronization object, not null when Mode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
mode str
Migration object type Partial (partial object). Note: This field may return null, indicating that no valid value can be obtained.
online_ddl DtsSyncConfigObjectsOnlineDdl
OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
advancedObjects List<String>
For advanced object types, such as function and procedure, when an advanced object needs to be synchronized, the initialization type must include the structure initialization type, that is, the value of the Options.InitType field is Structure or Full. Note: This field may return null, indicating that no valid value can be obtained.
databases List<Property Map>
Synchronization object, not null when Mode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
mode String
Migration object type Partial (partial object). Note: This field may return null, indicating that no valid value can be obtained.
onlineDdl Property Map
OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigObjectsDatabase
, DtsSyncConfigObjectsDatabaseArgs

DbMode string
DB selection mode: All (for all objects under the current object), Partial (for some objects), when the Mode is Partial, this item is required. Note that synchronization of advanced objects does not depend on this value. Note: This field may return null, indicating that no valid value can be obtained.
DbName string
The name of the library that needs to be migrated or synchronized. This item is required when the ObjectMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
EventMode string
Event migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
Events List<string>
When EventMode is partial, specify the name of the event to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
FunctionMode string
Select the mode to be synchronized, Partial is a part, all is an entire selection. Note: This field may return null, indicating that no valid value can be obtained.
Functions List<string>
Required when the FunctionMode value is Partial. Note: This field may return null, indicating that no valid value can be obtained.
NewDbName string
The name of the library after migration or synchronization, which is the same as the source library by default. Note: This field may return null, indicating that no valid value can be obtained.
NewSchemaName string
Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
ProcedureMode string
Select the mode to be synchronized, Partial is part, All is the whole selection. Note: This field may return null, indicating that no valid value can be obtained.
Procedures List<string>
Required when the value of ProcedureMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
SchemaName string
Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
TableMode string
Table selection mode: All (for all objects under the current object), Partial (for some objects), this item is required when the DBMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
Tables List<DtsSyncConfigObjectsDatabaseTable>
A collection of table graph objects, when TableMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
TriggerMode string
Trigger migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
Triggers List<string>
When TriggerMode is partial, specify the name of the trigger to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
ViewMode string
View selection mode: All is all view objects under the current object, Partial is part of the view objects. Note: This field may return null, indicating that no valid value can be obtained.
Views List<DtsSyncConfigObjectsDatabaseView>
View object collection, when ViewMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
DbMode string
DB selection mode: All (for all objects under the current object), Partial (for some objects), when the Mode is Partial, this item is required. Note that synchronization of advanced objects does not depend on this value. Note: This field may return null, indicating that no valid value can be obtained.
DbName string
The name of the library that needs to be migrated or synchronized. This item is required when the ObjectMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
EventMode string
Event migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
Events []string
When EventMode is partial, specify the name of the event to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
FunctionMode string
Select the mode to be synchronized, Partial is a part, all is an entire selection. Note: This field may return null, indicating that no valid value can be obtained.
Functions []string
Required when the FunctionMode value is Partial. Note: This field may return null, indicating that no valid value can be obtained.
NewDbName string
The name of the library after migration or synchronization, which is the same as the source library by default. Note: This field may return null, indicating that no valid value can be obtained.
NewSchemaName string
Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
ProcedureMode string
Select the mode to be synchronized, Partial is part, All is the whole selection. Note: This field may return null, indicating that no valid value can be obtained.
Procedures []string
Required when the value of ProcedureMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
SchemaName string
Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
TableMode string
Table selection mode: All (for all objects under the current object), Partial (for some objects), this item is required when the DBMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
Tables []DtsSyncConfigObjectsDatabaseTable
A collection of table graph objects, when TableMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
TriggerMode string
Trigger migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
Triggers []string
When TriggerMode is partial, specify the name of the trigger to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
ViewMode string
View selection mode: All is all view objects under the current object, Partial is part of the view objects. Note: This field may return null, indicating that no valid value can be obtained.
Views []DtsSyncConfigObjectsDatabaseView
View object collection, when ViewMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
dbMode String
DB selection mode: All (for all objects under the current object), Partial (for some objects), when the Mode is Partial, this item is required. Note that synchronization of advanced objects does not depend on this value. Note: This field may return null, indicating that no valid value can be obtained.
dbName String
The name of the library that needs to be migrated or synchronized. This item is required when the ObjectMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
eventMode String
Event migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
events List<String>
When EventMode is partial, specify the name of the event to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
functionMode String
Select the mode to be synchronized, Partial is a part, all is an entire selection. Note: This field may return null, indicating that no valid value can be obtained.
functions List<String>
Required when the FunctionMode value is Partial. Note: This field may return null, indicating that no valid value can be obtained.
newDbName String
The name of the library after migration or synchronization, which is the same as the source library by default. Note: This field may return null, indicating that no valid value can be obtained.
newSchemaName String
Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
procedureMode String
Select the mode to be synchronized, Partial is part, All is the whole selection. Note: This field may return null, indicating that no valid value can be obtained.
procedures List<String>
Required when the value of ProcedureMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
schemaName String
Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
tableMode String
Table selection mode: All (for all objects under the current object), Partial (for some objects), this item is required when the DBMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
tables List<DtsSyncConfigObjectsDatabaseTable>
A collection of table graph objects, when TableMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
triggerMode String
Trigger migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
triggers List<String>
When TriggerMode is partial, specify the name of the trigger to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
viewMode String
View selection mode: All is all view objects under the current object, Partial is part of the view objects. Note: This field may return null, indicating that no valid value can be obtained.
views List<DtsSyncConfigObjectsDatabaseView>
View object collection, when ViewMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
dbMode string
DB selection mode: All (for all objects under the current object), Partial (for some objects), when the Mode is Partial, this item is required. Note that synchronization of advanced objects does not depend on this value. Note: This field may return null, indicating that no valid value can be obtained.
dbName string
The name of the library that needs to be migrated or synchronized. This item is required when the ObjectMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
eventMode string
Event migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
events string[]
When EventMode is partial, specify the name of the event to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
functionMode string
Select the mode to be synchronized, Partial is a part, all is an entire selection. Note: This field may return null, indicating that no valid value can be obtained.
functions string[]
Required when the FunctionMode value is Partial. Note: This field may return null, indicating that no valid value can be obtained.
newDbName string
The name of the library after migration or synchronization, which is the same as the source library by default. Note: This field may return null, indicating that no valid value can be obtained.
newSchemaName string
Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
procedureMode string
Select the mode to be synchronized, Partial is part, All is the whole selection. Note: This field may return null, indicating that no valid value can be obtained.
procedures string[]
Required when the value of ProcedureMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
schemaName string
Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
tableMode string
Table selection mode: All (for all objects under the current object), Partial (for some objects), this item is required when the DBMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
tables DtsSyncConfigObjectsDatabaseTable[]
A collection of table graph objects, when TableMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
triggerMode string
Trigger migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
triggers string[]
When TriggerMode is partial, specify the name of the trigger to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
viewMode string
View selection mode: All is all view objects under the current object, Partial is part of the view objects. Note: This field may return null, indicating that no valid value can be obtained.
views DtsSyncConfigObjectsDatabaseView[]
View object collection, when ViewMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
db_mode str
DB selection mode: All (for all objects under the current object), Partial (for some objects), when the Mode is Partial, this item is required. Note that synchronization of advanced objects does not depend on this value. Note: This field may return null, indicating that no valid value can be obtained.
db_name str
The name of the library that needs to be migrated or synchronized. This item is required when the ObjectMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
event_mode str
Event migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
events Sequence[str]
When EventMode is partial, specify the name of the event to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
function_mode str
Select the mode to be synchronized, Partial is a part, all is an entire selection. Note: This field may return null, indicating that no valid value can be obtained.
functions Sequence[str]
Required when the FunctionMode value is Partial. Note: This field may return null, indicating that no valid value can be obtained.
new_db_name str
The name of the library after migration or synchronization, which is the same as the source library by default. Note: This field may return null, indicating that no valid value can be obtained.
new_schema_name str
Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
procedure_mode str
Select the mode to be synchronized, Partial is part, All is the whole selection. Note: This field may return null, indicating that no valid value can be obtained.
procedures Sequence[str]
Required when the value of ProcedureMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
schema_name str
Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
table_mode str
Table selection mode: All (for all objects under the current object), Partial (for some objects), this item is required when the DBMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
tables Sequence[DtsSyncConfigObjectsDatabaseTable]
A collection of table graph objects, when TableMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
trigger_mode str
Trigger migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
triggers Sequence[str]
When TriggerMode is partial, specify the name of the trigger to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
view_mode str
View selection mode: All is all view objects under the current object, Partial is part of the view objects. Note: This field may return null, indicating that no valid value can be obtained.
views Sequence[DtsSyncConfigObjectsDatabaseView]
View object collection, when ViewMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
dbMode String
DB selection mode: All (for all objects under the current object), Partial (for some objects), when the Mode is Partial, this item is required. Note that synchronization of advanced objects does not depend on this value. Note: This field may return null, indicating that no valid value can be obtained.
dbName String
The name of the library that needs to be migrated or synchronized. This item is required when the ObjectMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
eventMode String
Event migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
events List<String>
When EventMode is partial, specify the name of the event to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
functionMode String
Select the mode to be synchronized, Partial is a part, all is an entire selection. Note: This field may return null, indicating that no valid value can be obtained.
functions List<String>
Required when the FunctionMode value is Partial. Note: This field may return null, indicating that no valid value can be obtained.
newDbName String
The name of the library after migration or synchronization, which is the same as the source library by default. Note: This field may return null, indicating that no valid value can be obtained.
newSchemaName String
Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
procedureMode String
Select the mode to be synchronized, Partial is part, All is the whole selection. Note: This field may return null, indicating that no valid value can be obtained.
procedures List<String>
Required when the value of ProcedureMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
schemaName String
Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
tableMode String
Table selection mode: All (for all objects under the current object), Partial (for some objects), this item is required when the DBMode is Partial. Note: This field may return null, indicating that no valid value can be obtained.
tables List<Property Map>
A collection of table graph objects, when TableMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.
triggerMode String
Trigger migration mode, all (for all objects under the current object), partial (partial objects). Note: This field may return null, indicating that no valid value can be obtained.
triggers List<String>
When TriggerMode is partial, specify the name of the trigger to be migrated. Note: This field may return null, indicating that no valid value can be obtained.
viewMode String
View selection mode: All is all view objects under the current object, Partial is part of the view objects. Note: This field may return null, indicating that no valid value can be obtained.
views List<Property Map>
View object collection, when ViewMode is Partial, this item needs to be filled in. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigObjectsDatabaseTable
, DtsSyncConfigObjectsDatabaseTableArgs

FilterCondition string
Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
NewTableName string
New table name. Note: This field may return null, indicating that no valid value can be obtained.
TableName string
Table name. Note: This field may return null, indicating that no valid value can be obtained.
FilterCondition string
Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
NewTableName string
New table name. Note: This field may return null, indicating that no valid value can be obtained.
TableName string
Table name. Note: This field may return null, indicating that no valid value can be obtained.
filterCondition String
Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
newTableName String
New table name. Note: This field may return null, indicating that no valid value can be obtained.
tableName String
Table name. Note: This field may return null, indicating that no valid value can be obtained.
filterCondition string
Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
newTableName string
New table name. Note: This field may return null, indicating that no valid value can be obtained.
tableName string
Table name. Note: This field may return null, indicating that no valid value can be obtained.
filter_condition str
Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
new_table_name str
New table name. Note: This field may return null, indicating that no valid value can be obtained.
table_name str
Table name. Note: This field may return null, indicating that no valid value can be obtained.
filterCondition String
Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
newTableName String
New table name. Note: This field may return null, indicating that no valid value can be obtained.
tableName String
Table name. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigObjectsDatabaseView
, DtsSyncConfigObjectsDatabaseViewArgs

NewViewName string
New view name. Note: This field may return null, indicating that no valid value can be obtained.
ViewName string
View name. Note: This field may return null, indicating that no valid value can be obtained.
NewViewName string
New view name. Note: This field may return null, indicating that no valid value can be obtained.
ViewName string
View name. Note: This field may return null, indicating that no valid value can be obtained.
newViewName String
New view name. Note: This field may return null, indicating that no valid value can be obtained.
viewName String
View name. Note: This field may return null, indicating that no valid value can be obtained.
newViewName string
New view name. Note: This field may return null, indicating that no valid value can be obtained.
viewName string
View name. Note: This field may return null, indicating that no valid value can be obtained.
new_view_name str
New view name. Note: This field may return null, indicating that no valid value can be obtained.
view_name str
View name. Note: This field may return null, indicating that no valid value can be obtained.
newViewName String
New view name. Note: This field may return null, indicating that no valid value can be obtained.
viewName String
View name. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigObjectsOnlineDdl
, DtsSyncConfigObjectsOnlineDdlArgs

Status string
status.
Status string
status.
status String
status.
status string
status.
status str
status.
status String
status.

DtsSyncConfigOptions
, DtsSyncConfigOptionsArgs

AddAdditionalColumn bool
Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
ConflictHandleOption DtsSyncConfigOptionsConflictHandleOption
Detailed options for conflict handling, such as conditional rows and conditional actions in conditional overrides. Note: This field may return null, indicating that no valid value can be obtained.
ConflictHandleType string
Conflict handling options, ReportError (error report, the default value), Ignore (ignore), Cover (cover), ConditionCover (condition coverage). Note: This field may return null, indicating that no valid value can be obtained.
DdlOptions List<DtsSyncConfigOptionsDdlOption>
DDL synchronization options, specifically describe which DDLs to synchronize. Note: This field may return null, indicating that no valid value can be obtained.
DealOfExistSameTable string
The processing of the table with the same name, ReportErrorAfterCheck (pre-check and report error, default), InitializeAfterDelete (delete and re-initialize), ExecuteAfterIgnore (ignore and continue to execute). Note: This field may return null, indicating that no valid value can be obtained.
InitType string
Synchronous initialization options, Data (full data initialization), Structure (structure initialization), Full (full data and structure initialization, default), None (incremental only). Note: This field may return null, indicating that no valid value can be obtained.
OpTypes List<string>
DML and DDL options to be synchronized, Insert (insert operation), Update (update operation), Delete (delete operation), DDL (structure synchronization), leave blank (not selected), PartialDDL (custom, work with DdlOptions). Note: This field may return null, indicating that no valid value can be obtained.
AddAdditionalColumn bool
Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
ConflictHandleOption DtsSyncConfigOptionsConflictHandleOption
Detailed options for conflict handling, such as conditional rows and conditional actions in conditional overrides. Note: This field may return null, indicating that no valid value can be obtained.
ConflictHandleType string
Conflict handling options, ReportError (error report, the default value), Ignore (ignore), Cover (cover), ConditionCover (condition coverage). Note: This field may return null, indicating that no valid value can be obtained.
DdlOptions []DtsSyncConfigOptionsDdlOption
DDL synchronization options, specifically describe which DDLs to synchronize. Note: This field may return null, indicating that no valid value can be obtained.
DealOfExistSameTable string
The processing of the table with the same name, ReportErrorAfterCheck (pre-check and report error, default), InitializeAfterDelete (delete and re-initialize), ExecuteAfterIgnore (ignore and continue to execute). Note: This field may return null, indicating that no valid value can be obtained.
InitType string
Synchronous initialization options, Data (full data initialization), Structure (structure initialization), Full (full data and structure initialization, default), None (incremental only). Note: This field may return null, indicating that no valid value can be obtained.
OpTypes []string
DML and DDL options to be synchronized, Insert (insert operation), Update (update operation), Delete (delete operation), DDL (structure synchronization), leave blank (not selected), PartialDDL (custom, work with DdlOptions). Note: This field may return null, indicating that no valid value can be obtained.
addAdditionalColumn Boolean
Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
conflictHandleOption DtsSyncConfigOptionsConflictHandleOption
Detailed options for conflict handling, such as conditional rows and conditional actions in conditional overrides. Note: This field may return null, indicating that no valid value can be obtained.
conflictHandleType String
Conflict handling options, ReportError (error report, the default value), Ignore (ignore), Cover (cover), ConditionCover (condition coverage). Note: This field may return null, indicating that no valid value can be obtained.
ddlOptions List<DtsSyncConfigOptionsDdlOption>
DDL synchronization options, specifically describe which DDLs to synchronize. Note: This field may return null, indicating that no valid value can be obtained.
dealOfExistSameTable String
The processing of the table with the same name, ReportErrorAfterCheck (pre-check and report error, default), InitializeAfterDelete (delete and re-initialize), ExecuteAfterIgnore (ignore and continue to execute). Note: This field may return null, indicating that no valid value can be obtained.
initType String
Synchronous initialization options, Data (full data initialization), Structure (structure initialization), Full (full data and structure initialization, default), None (incremental only). Note: This field may return null, indicating that no valid value can be obtained.
opTypes List<String>
DML and DDL options to be synchronized, Insert (insert operation), Update (update operation), Delete (delete operation), DDL (structure synchronization), leave blank (not selected), PartialDDL (custom, work with DdlOptions). Note: This field may return null, indicating that no valid value can be obtained.
addAdditionalColumn boolean
Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
conflictHandleOption DtsSyncConfigOptionsConflictHandleOption
Detailed options for conflict handling, such as conditional rows and conditional actions in conditional overrides. Note: This field may return null, indicating that no valid value can be obtained.
conflictHandleType string
Conflict handling options, ReportError (error report, the default value), Ignore (ignore), Cover (cover), ConditionCover (condition coverage). Note: This field may return null, indicating that no valid value can be obtained.
ddlOptions DtsSyncConfigOptionsDdlOption[]
DDL synchronization options, specifically describe which DDLs to synchronize. Note: This field may return null, indicating that no valid value can be obtained.
dealOfExistSameTable string
The processing of the table with the same name, ReportErrorAfterCheck (pre-check and report error, default), InitializeAfterDelete (delete and re-initialize), ExecuteAfterIgnore (ignore and continue to execute). Note: This field may return null, indicating that no valid value can be obtained.
initType string
Synchronous initialization options, Data (full data initialization), Structure (structure initialization), Full (full data and structure initialization, default), None (incremental only). Note: This field may return null, indicating that no valid value can be obtained.
opTypes string[]
DML and DDL options to be synchronized, Insert (insert operation), Update (update operation), Delete (delete operation), DDL (structure synchronization), leave blank (not selected), PartialDDL (custom, work with DdlOptions). Note: This field may return null, indicating that no valid value can be obtained.
add_additional_column bool
Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
conflict_handle_option DtsSyncConfigOptionsConflictHandleOption
Detailed options for conflict handling, such as conditional rows and conditional actions in conditional overrides. Note: This field may return null, indicating that no valid value can be obtained.
conflict_handle_type str
Conflict handling options, ReportError (error report, the default value), Ignore (ignore), Cover (cover), ConditionCover (condition coverage). Note: This field may return null, indicating that no valid value can be obtained.
ddl_options Sequence[DtsSyncConfigOptionsDdlOption]
DDL synchronization options, specifically describe which DDLs to synchronize. Note: This field may return null, indicating that no valid value can be obtained.
deal_of_exist_same_table str
The processing of the table with the same name, ReportErrorAfterCheck (pre-check and report error, default), InitializeAfterDelete (delete and re-initialize), ExecuteAfterIgnore (ignore and continue to execute). Note: This field may return null, indicating that no valid value can be obtained.
init_type str
Synchronous initialization options, Data (full data initialization), Structure (structure initialization), Full (full data and structure initialization, default), None (incremental only). Note: This field may return null, indicating that no valid value can be obtained.
op_types Sequence[str]
DML and DDL options to be synchronized, Insert (insert operation), Update (update operation), Delete (delete operation), DDL (structure synchronization), leave blank (not selected), PartialDDL (custom, work with DdlOptions). Note: This field may return null, indicating that no valid value can be obtained.
addAdditionalColumn Boolean
Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
conflictHandleOption Property Map
Detailed options for conflict handling, such as conditional rows and conditional actions in conditional overrides. Note: This field may return null, indicating that no valid value can be obtained.
conflictHandleType String
Conflict handling options, ReportError (error report, the default value), Ignore (ignore), Cover (cover), ConditionCover (condition coverage). Note: This field may return null, indicating that no valid value can be obtained.
ddlOptions List<Property Map>
DDL synchronization options, specifically describe which DDLs to synchronize. Note: This field may return null, indicating that no valid value can be obtained.
dealOfExistSameTable String
The processing of the table with the same name, ReportErrorAfterCheck (pre-check and report error, default), InitializeAfterDelete (delete and re-initialize), ExecuteAfterIgnore (ignore and continue to execute). Note: This field may return null, indicating that no valid value can be obtained.
initType String
Synchronous initialization options, Data (full data initialization), Structure (structure initialization), Full (full data and structure initialization, default), None (incremental only). Note: This field may return null, indicating that no valid value can be obtained.
opTypes List<String>
DML and DDL options to be synchronized, Insert (insert operation), Update (update operation), Delete (delete operation), DDL (structure synchronization), leave blank (not selected), PartialDDL (custom, work with DdlOptions). Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigOptionsConflictHandleOption
, DtsSyncConfigOptionsConflictHandleOptionArgs

ConditionColumn string
Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
ConditionOperator string
Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
ConditionOrderInSrcAndDst string
Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
ConditionColumn string
Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
ConditionOperator string
Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
ConditionOrderInSrcAndDst string
Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
conditionColumn String
Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
conditionOperator String
Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
conditionOrderInSrcAndDst String
Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
conditionColumn string
Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
conditionOperator string
Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
conditionOrderInSrcAndDst string
Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
condition_column str
Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
condition_operator str
Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
condition_order_in_src_and_dst str
Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
conditionColumn String
Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
conditionOperator String
Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
conditionOrderInSrcAndDst String
Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigOptionsDdlOption
, DtsSyncConfigOptionsDdlOptionArgs

DdlObject string
Ddl type, such as Database, Table, View, Index, etc. Note: This field may return null, indicating that no valid value can be obtained.
DdlValues List<string>
The specific value of ddl, the possible values for Database [Create,Drop,Alter].The possible values for Table [Create,Drop,Alter,Truncate,Rename].The possible values for View[Create,Drop].For the possible values of Index [Create, Drop]. Note: This field may return null, indicating that no valid value can be obtained.
DdlObject string
Ddl type, such as Database, Table, View, Index, etc. Note: This field may return null, indicating that no valid value can be obtained.
DdlValues []string
The specific value of ddl, the possible values for Database [Create,Drop,Alter].The possible values for Table [Create,Drop,Alter,Truncate,Rename].The possible values for View[Create,Drop].For the possible values of Index [Create, Drop]. Note: This field may return null, indicating that no valid value can be obtained.
ddlObject String
Ddl type, such as Database, Table, View, Index, etc. Note: This field may return null, indicating that no valid value can be obtained.
ddlValues List<String>
The specific value of ddl, the possible values for Database [Create,Drop,Alter].The possible values for Table [Create,Drop,Alter,Truncate,Rename].The possible values for View[Create,Drop].For the possible values of Index [Create, Drop]. Note: This field may return null, indicating that no valid value can be obtained.
ddlObject string
Ddl type, such as Database, Table, View, Index, etc. Note: This field may return null, indicating that no valid value can be obtained.
ddlValues string[]
The specific value of ddl, the possible values for Database [Create,Drop,Alter].The possible values for Table [Create,Drop,Alter,Truncate,Rename].The possible values for View[Create,Drop].For the possible values of Index [Create, Drop]. Note: This field may return null, indicating that no valid value can be obtained.
ddl_object str
Ddl type, such as Database, Table, View, Index, etc. Note: This field may return null, indicating that no valid value can be obtained.
ddl_values Sequence[str]
The specific value of ddl, the possible values for Database [Create,Drop,Alter].The possible values for Table [Create,Drop,Alter,Truncate,Rename].The possible values for View[Create,Drop].For the possible values of Index [Create, Drop]. Note: This field may return null, indicating that no valid value can be obtained.
ddlObject String
Ddl type, such as Database, Table, View, Index, etc. Note: This field may return null, indicating that no valid value can be obtained.
ddlValues List<String>
The specific value of ddl, the possible values for Database [Create,Drop,Alter].The possible values for Table [Create,Drop,Alter,Truncate,Rename].The possible values for View[Create,Drop].For the possible values of Index [Create, Drop]. Note: This field may return null, indicating that no valid value can be obtained.

DtsSyncConfigSrcInfo
, DtsSyncConfigSrcInfoArgs

Account string
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
AccountMode string
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
AccountRole string
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
CcnId string
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
CvmInstanceId string
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
DatabaseNetEnv string
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
DbKernel string
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
DbName string
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
EncryptConn string
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
EngineVersion string
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
InstanceId string
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
Ip string
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Password string
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
Port double
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Region string
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
Role string
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
RoleExternalId string
External role id. Note: This field may return null, indicating that no valid value can be obtained.
SubnetId string
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
Supplier string
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretId string
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretKey string
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpToken string
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
UniqDcgId string
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
UniqVpnGwId string
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
User string
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
VpcId string
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
Account string
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
AccountMode string
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
AccountRole string
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
CcnId string
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
CvmInstanceId string
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
DatabaseNetEnv string
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
DbKernel string
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
DbName string
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
EncryptConn string
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
EngineVersion string
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
InstanceId string
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
Ip string
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Password string
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
Port float64
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
Region string
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
Role string
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
RoleExternalId string
External role id. Note: This field may return null, indicating that no valid value can be obtained.
SubnetId string
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
Supplier string
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretId string
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpSecretKey string
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
TmpToken string
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
UniqDcgId string
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
UniqVpnGwId string
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
User string
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
VpcId string
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account String
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
accountMode String
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
accountRole String
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccnId String
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvmInstanceId String
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
databaseNetEnv String
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
dbKernel String
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
dbName String
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encryptConn String
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engineVersion String
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instanceId String
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip String
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password String
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port Double
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region String
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role String
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
roleExternalId String
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnetId String
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier String
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretId String
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretKey String
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpToken String
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniqDcgId String
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniqVpnGwId String
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user String
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpcId String
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account string
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
accountMode string
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
accountRole string
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccnId string
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvmInstanceId string
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
databaseNetEnv string
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
dbKernel string
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
dbName string
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encryptConn string
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engineVersion string
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instanceId string
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip string
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password string
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port number
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region string
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role string
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
roleExternalId string
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnetId string
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier string
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretId string
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretKey string
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpToken string
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniqDcgId string
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniqVpnGwId string
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user string
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpcId string
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account str
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
account_mode str
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
account_role str
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccn_id str
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvm_instance_id str
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
database_net_env str
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
db_kernel str
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
db_name str
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encrypt_conn str
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engine_version str
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instance_id str
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip str
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password str
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port float
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region str
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role str
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
role_external_id str
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnet_id str
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier str
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmp_secret_id str
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmp_secret_key str
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmp_token str
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniq_dcg_id str
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniq_vpn_gw_id str
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user str
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpc_id str
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.
account String
The account to which the instance belongs. This field is required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
accountMode String
The account to which the resource belongs is empty or self (represents resources within this account), other (represents cross-account resources). Note: This field may return null, indicating that no valid value can be obtained.
accountRole String
The role during cross-account synchronization, only [a-zA-Z0-9-_]+ is allowed, if it is a cross-account instance, this field is required. Note: This field may return null, indicating that no valid value can be obtained.
ccnId String
Cloud networking ID, which is required for the cloud networking access type. Note: This field may return null, indicating that no valid value can be obtained.
cvmInstanceId String
CVM instance short ID, which is the same as the instance ID displayed on the cloud server console page. If it is a self-built instance of CVM, this field needs to be passed. Note: This field may return null, indicating that no valid value can be obtained.
databaseNetEnv String
The network environment to which the database belongs. It is required when AccessType is Cloud Network (CCN). UserIDC represents the user IDC. TencentVPC represents Tencent Cloud VPC. Note: This field may return null, indicating that no valid value can be obtained.
dbKernel String
Database kernel type, used to distinguish different kernels in tdsql: percona, mariadb, mysql. Note: This field may return null, indicating that no valid value can be obtained.
dbName String
Database name, when the database is cdwpg, it needs to be provided. Note: This field may return null, indicating that no valid value can be obtained.
encryptConn String
Whether to use encrypted transmission, UnEncrypted means not to use encrypted transmission, Encrypted means to use encrypted transmission, the default is UnEncrypted. Note: This field may return null, indicating that no valid value can be obtained.
engineVersion String
Database version, valid only when the instance is an RDS instance, ignored by other instances, the format is: 5.6 or 5.7, the default is 5.6. Note: This field may return null, indicating that no valid value can be obtained.
instanceId String
Database instance id. Note: This field may return null, indicating that no valid value can be obtained.
ip String
The IP address of the instance, which is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
password String
Password, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
port Number
Instance port, this item is required when the access type is non-cdb. Note: This field may return null, indicating that no valid value can be obtained.
region String
The english name of region. Note: This field may return null, indicating that no valid value can be obtained.
role String
The node type of tdsql mysql version, the enumeration value is proxy, set. Note: This field may return null, indicating that no valid value can be obtained.
roleExternalId String
External role id. Note: This field may return null, indicating that no valid value can be obtained.
subnetId String
The subnet ID under the private network, this item is required for the private network, leased line, and VPN access methods. Note: This field may return null, indicating that no valid value can be obtained.
supplier String
Cloud vendor type, when the instance is an RDS instance, fill in aliyun, in other cases fill in others, the default is others. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretId String
Temporary key Id, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpSecretKey String
Temporary key Key, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
tmpToken String
Temporary Token, required if it is a cross-account instance. Note: This field may return null, indicating that no valid value can be obtained.
uniqDcgId String
Leased line gateway ID, which is required for the leased line access type. Note: This field may return null, indicating that no valid value can be obtained.
uniqVpnGwId String
VPN gateway ID, which is required for the VPN access type. Note: This field may return null, indicating that no valid value can be obtained.
user String
Username, required for instances that require username and password authentication for access. Note: This field may return null, indicating that no valid value can be obtained.
vpcId String
Private network ID, which is required for access methods of private network, leased line, and VPN. Note: This field may return null, indicating that no valid value can be obtained.

Import

dts sync_config can be imported using the id, e.g.

$ pulumi import tencentcloud:index/dtsSyncConfig:DtsSyncConfig sync_config sync_config_id
Copy

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.