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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args DtsSyncConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args DtsSyncConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DtsSyncConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Dst
Access stringType - 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 string - Synchronization instance id (i.e. identifies a synchronization job).
- Objects
Dts
Sync Config Objects - Synchronize database table object information.
- Src
Access stringType - 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 doubleTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- Dst
Info DtsSync Config Dst Info - Target information, single-node database use.
- Dts
Sync stringConfig Id - ID of the resource.
- Expect
Run stringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- Job
Mode string - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- Job
Name string - Sync job name.
- Options
Dts
Sync Config Options - Sync Task Options.
- Run
Mode string - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- Src
Info DtsSync Config Src Info - Source information, single-node database use.
- Dst
Access stringType - 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 string - Synchronization instance id (i.e. identifies a synchronization job).
- Objects
Dts
Sync Config Objects Args - Synchronize database table object information.
- Src
Access stringType - 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 float64Time Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- Dst
Info DtsSync Config Dst Info Args - Target information, single-node database use.
- Dts
Sync stringConfig Id - ID of the resource.
- Expect
Run stringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- Job
Mode string - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- Job
Name string - Sync job name.
- Options
Dts
Sync Config Options Args - Sync Task Options.
- Run
Mode string - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- Src
Info DtsSync Config Src Info Args - Source information, single-node database use.
- dst
Access StringType - 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 String - Synchronization instance id (i.e. identifies a synchronization job).
- objects
Dts
Sync Config Objects - Synchronize database table object information.
- src
Access StringType - 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 DoubleTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst
Info DtsSync Config Dst Info - Target information, single-node database use.
- dts
Sync StringConfig Id - ID of the resource.
- expect
Run StringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- job
Mode String - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- job
Name String - Sync job name.
- options
Dts
Sync Config Options - Sync Task Options.
- run
Mode String - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- src
Info DtsSync Config Src Info - Source information, single-node database use.
- dst
Access stringType - 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 string - Synchronization instance id (i.e. identifies a synchronization job).
- objects
Dts
Sync Config Objects - Synchronize database table object information.
- src
Access stringType - 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 numberTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst
Info DtsSync Config Dst Info - Target information, single-node database use.
- dts
Sync stringConfig Id - ID of the resource.
- expect
Run stringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- job
Mode string - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- job
Name string - Sync job name.
- options
Dts
Sync Config Options - Sync Task Options.
- run
Mode string - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- src
Info DtsSync Config Src Info - Source information, single-node database use.
- dst_
access_ strtype - 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 str - Synchronization instance id (i.e. identifies a synchronization job).
- objects
Dts
Sync Config Objects Args - Synchronize database table object information.
- src_
access_ strtype - 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_ floattime_ range_ minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst_
info DtsSync Config Dst Info Args - Target information, single-node database use.
- dts_
sync_ strconfig_ id - ID of the resource.
- expect_
run_ strtime - 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
Dts
Sync Config Options Args - 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 DtsSync Config Src Info Args - Source information, single-node database use.
- dst
Access StringType - 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 String - Synchronization instance id (i.e. identifies a synchronization job).
- objects Property Map
- Synchronize database table object information.
- src
Access StringType - 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 NumberTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst
Info Property Map - Target information, single-node database use.
- dts
Sync StringConfig Id - ID of the resource.
- expect
Run StringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- job
Mode String - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- job
Name String - Sync job name.
- options Property Map
- Sync Task Options.
- run
Mode String - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- src
Info 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Retry doubleTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- Dst
Access stringType - 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 DtsSync Config Dst Info - Target information, single-node database use.
- Dts
Sync stringConfig Id - ID of the resource.
- Expect
Run stringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- Job
Id string - Synchronization instance id (i.e. identifies a synchronization job).
- Job
Mode string - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- Job
Name string - Sync job name.
- Objects
Dts
Sync Config Objects - Synchronize database table object information.
- Options
Dts
Sync Config Options - Sync Task Options.
- Run
Mode string - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- Src
Access stringType - 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 DtsSync Config Src Info - Source information, single-node database use.
- Auto
Retry float64Time Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- Dst
Access stringType - 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 DtsSync Config Dst Info Args - Target information, single-node database use.
- Dts
Sync stringConfig Id - ID of the resource.
- Expect
Run stringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- Job
Id string - Synchronization instance id (i.e. identifies a synchronization job).
- Job
Mode string - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- Job
Name string - Sync job name.
- Objects
Dts
Sync Config Objects Args - Synchronize database table object information.
- Options
Dts
Sync Config Options Args - Sync Task Options.
- Run
Mode string - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- Src
Access stringType - 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 DtsSync Config Src Info Args - Source information, single-node database use.
- auto
Retry DoubleTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst
Access StringType - 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 DtsSync Config Dst Info - Target information, single-node database use.
- dts
Sync StringConfig Id - ID of the resource.
- expect
Run StringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- job
Id String - Synchronization instance id (i.e. identifies a synchronization job).
- job
Mode String - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- job
Name String - Sync job name.
- objects
Dts
Sync Config Objects - Synchronize database table object information.
- options
Dts
Sync Config Options - Sync Task Options.
- run
Mode String - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- src
Access StringType - 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 DtsSync Config Src Info - Source information, single-node database use.
- auto
Retry numberTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst
Access stringType - 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 DtsSync Config Dst Info - Target information, single-node database use.
- dts
Sync stringConfig Id - ID of the resource.
- expect
Run stringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- job
Id string - Synchronization instance id (i.e. identifies a synchronization job).
- job
Mode string - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- job
Name string - Sync job name.
- objects
Dts
Sync Config Objects - Synchronize database table object information.
- options
Dts
Sync Config Options - Sync Task Options.
- run
Mode string - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- src
Access stringType - 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 DtsSync Config Src Info - Source information, single-node database use.
- auto_
retry_ floattime_ range_ minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst_
access_ strtype - 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 DtsSync Config Dst Info Args - Target information, single-node database use.
- dts_
sync_ strconfig_ id - ID of the resource.
- expect_
run_ strtime - 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
Dts
Sync Config Objects Args - Synchronize database table object information.
- options
Dts
Sync Config Options Args - 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_ strtype - 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 DtsSync Config Src Info Args - Source information, single-node database use.
- auto
Retry NumberTime Range Minutes - The time period of automatic retry, can be set from 5 to 720 minutes, 0 means no retry.
- dst
Access StringType - 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 Property Map - Target information, single-node database use.
- dts
Sync StringConfig Id - ID of the resource.
- expect
Run StringTime - Expected start time, when the value of RunMode is Timed, this value is required, such as: 2006-01-02 15:04:05.
- job
Id String - Synchronization instance id (i.e. identifies a synchronization job).
- job
Mode String - The enumeration values are liteMode and fullMode, corresponding to lite mode or normal mode respectively.
- job
Name String - Sync job name.
- objects Property Map
- Synchronize database table object information.
- options Property Map
- Sync Task Options.
- run
Mode String - Operation mode, such as: Immediate (indicates immediate operation, the default value is this value), Timed (indicates scheduled operation).
- src
Access StringType - 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 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.
- Account
Mode 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.
- Account
Role 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.
- Ccn
Id 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.
- Cvm
Instance stringId - 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 stringEnv - 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 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.
- Db
Name 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.
- Encrypt
Conn 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.
- Engine
Version 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.
- Instance
Id 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.
- Role
External stringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- Subnet
Id 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.
- Tmp
Secret stringId - 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 stringKey - 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 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.
- Uniq
Dcg stringId - 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 stringGw Id - 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.
- Vpc
Id 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.
- Account
Mode 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.
- Account
Role 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.
- Ccn
Id 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.
- Cvm
Instance stringId - 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 stringEnv - 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 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.
- Db
Name 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.
- Encrypt
Conn 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.
- Engine
Version 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.
- Instance
Id 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.
- Role
External stringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- Subnet
Id 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.
- Tmp
Secret stringId - 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 stringKey - 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 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.
- Uniq
Dcg stringId - 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 stringGw Id - 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.
- Vpc
Id 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.
- account
Mode 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.
- account
Role 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.
- ccn
Id 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.
- cvm
Instance StringId - 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 StringEnv - 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 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.
- db
Name 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.
- encrypt
Conn 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.
- engine
Version 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.
- instance
Id 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.
- role
External StringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- subnet
Id 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.
- tmp
Secret StringId - 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 StringKey - 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 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.
- uniq
Dcg StringId - 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 StringGw Id - 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.
- vpc
Id 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.
- account
Mode 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.
- account
Role 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.
- ccn
Id 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.
- cvm
Instance stringId - 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 stringEnv - 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 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.
- db
Name 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.
- encrypt
Conn 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.
- engine
Version 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.
- instance
Id 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.
- role
External stringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- subnet
Id 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.
- tmp
Secret stringId - 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 stringKey - 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 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.
- uniq
Dcg stringId - 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 stringGw Id - 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.
- vpc
Id 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_ strid - 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_ strenv - 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_ strid - 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_ strid - 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_ strkey - 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_ strid - 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_ strgw_ id - 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.
- account
Mode 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.
- account
Role 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.
- ccn
Id 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.
- cvm
Instance StringId - 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 StringEnv - 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 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.
- db
Name 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.
- encrypt
Conn 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.
- engine
Version 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.
- instance
Id 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.
- role
External StringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- subnet
Id 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.
- tmp
Secret StringId - 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 StringKey - 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 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.
- uniq
Dcg StringId - 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 StringGw Id - 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.
- vpc
Id 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
- Advanced
Objects 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<Dts
Sync Config Objects Database> - 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.
- Online
Ddl DtsSync Config Objects Online Ddl - OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
- Advanced
Objects []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
[]Dts
Sync Config Objects Database - 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.
- Online
Ddl DtsSync Config Objects Online Ddl - OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
- advanced
Objects 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<Dts
Sync Config Objects Database> - 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.
- online
Ddl DtsSync Config Objects Online Ddl - OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
- advanced
Objects 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
Dts
Sync Config Objects Database[] - 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.
- online
Ddl DtsSync Config Objects Online Ddl - 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[Dts
Sync Config Objects Database] - 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 DtsSync Config Objects Online Ddl - OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
- advanced
Objects 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.
- online
Ddl Property Map - OnlineDDL type. Note: This field may return null, indicating that no valid value can be obtained.
DtsSyncConfigObjectsDatabase, DtsSyncConfigObjectsDatabaseArgs
- Db
Mode 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.
- Db
Name 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.
- Event
Mode 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.
- Function
Mode 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.
- New
Db stringName - 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 stringName - Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
- Procedure
Mode 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.
- Schema
Name string - Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
- Table
Mode 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<Dts
Sync Config Objects Database Table> - 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 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.
- View
Mode 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<Dts
Sync Config Objects Database View> - 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 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.
- Db
Name 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.
- Event
Mode 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.
- Function
Mode 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.
- New
Db stringName - 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 stringName - Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
- Procedure
Mode 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.
- Schema
Name string - Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
- Table
Mode 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
[]Dts
Sync Config Objects Database Table - 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 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.
- View
Mode 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
[]Dts
Sync Config Objects Database View - 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 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.
- db
Name 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.
- event
Mode 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.
- function
Mode 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.
- new
Db StringName - 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 StringName - Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
- procedure
Mode 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.
- schema
Name String - Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
- table
Mode 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<Dts
Sync Config Objects Database Table> - 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 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.
- view
Mode 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<Dts
Sync Config Objects Database View> - 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 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.
- db
Name 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.
- event
Mode 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.
- function
Mode 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.
- new
Db stringName - 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 stringName - Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
- procedure
Mode 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.
- schema
Name string - Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
- table
Mode 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
Dts
Sync Config Objects Database Table[] - 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 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.
- view
Mode 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
Dts
Sync Config Objects Database View[] - 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_ strname - 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_ strname - 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[Dts
Sync Config Objects Database Table] - 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[Dts
Sync Config Objects Database View] - 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 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.
- db
Name 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.
- event
Mode 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.
- function
Mode 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.
- new
Db StringName - 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 StringName - Schema name after migration or synchronization. Note: This field may return null, indicating that no valid value can be obtained.
- procedure
Mode 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.
- schema
Name String - Migrated or synchronized schemaNote: This field may return null, indicating that no valid value can be obtained.
- table
Mode 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.
- trigger
Mode 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.
- view
Mode 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
- Filter
Condition string - Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
- New
Table stringName - New table name. Note: This field may return null, indicating that no valid value can be obtained.
- Table
Name string - Table name. Note: This field may return null, indicating that no valid value can be obtained.
- Filter
Condition string - Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
- New
Table stringName - New table name. Note: This field may return null, indicating that no valid value can be obtained.
- Table
Name string - Table name. Note: This field may return null, indicating that no valid value can be obtained.
- filter
Condition String - Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
- new
Table StringName - New table name. Note: This field may return null, indicating that no valid value can be obtained.
- table
Name String - Table name. Note: This field may return null, indicating that no valid value can be obtained.
- filter
Condition string - Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
- new
Table stringName - New table name. Note: This field may return null, indicating that no valid value can be obtained.
- table
Name 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_ strname - 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.
- filter
Condition String - Filter condition. Note: This field may return null, indicating that no valid value can be obtained.
- new
Table StringName - New table name. Note: This field may return null, indicating that no valid value can be obtained.
- table
Name String - Table name. Note: This field may return null, indicating that no valid value can be obtained.
DtsSyncConfigObjectsDatabaseView, DtsSyncConfigObjectsDatabaseViewArgs
- New
View stringName - New view name. Note: This field may return null, indicating that no valid value can be obtained.
- View
Name string - View name. Note: This field may return null, indicating that no valid value can be obtained.
- New
View stringName - New view name. Note: This field may return null, indicating that no valid value can be obtained.
- View
Name string - View name. Note: This field may return null, indicating that no valid value can be obtained.
- new
View StringName - New view name. Note: This field may return null, indicating that no valid value can be obtained.
- view
Name String - View name. Note: This field may return null, indicating that no valid value can be obtained.
- new
View stringName - New view name. Note: This field may return null, indicating that no valid value can be obtained.
- view
Name string - View name. Note: This field may return null, indicating that no valid value can be obtained.
- new_
view_ strname - 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.
- new
View StringName - New view name. Note: This field may return null, indicating that no valid value can be obtained.
- view
Name 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
- Add
Additional boolColumn - Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
- Conflict
Handle DtsOption Sync Config Options Conflict Handle Option - 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 stringType - 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 List<DtsSync Config Options Ddl Option> - 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 stringExist Same Table - 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 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.
- Op
Types 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.
- Add
Additional boolColumn - Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
- Conflict
Handle DtsOption Sync Config Options Conflict Handle Option - 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 stringType - 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 []DtsSync Config Options Ddl Option - 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 stringExist Same Table - 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 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.
- Op
Types []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 BooleanColumn - Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
- conflict
Handle DtsOption Sync Config Options Conflict Handle Option - 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 StringType - 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 List<DtsSync Config Options Ddl Option> - 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 StringExist Same Table - 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 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.
- op
Types 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.
- add
Additional booleanColumn - Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
- conflict
Handle DtsOption Sync Config Options Conflict Handle Option - 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 stringType - 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 DtsSync Config Options Ddl Option[] - 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 stringExist Same Table - 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 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.
- op
Types 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_ boolcolumn - Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
- conflict_
handle_ Dtsoption Sync Config Options Conflict Handle Option - 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_ strtype - 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[DtsSync Config Options Ddl Option] - 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_ strexist_ same_ table - 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.
- add
Additional BooleanColumn - Whether to add additional columns. Note: This field may return null, indicating that no valid value can be obtained.
- conflict
Handle Property MapOption - 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 StringType - 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 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.
- deal
Of StringExist Same Table - 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 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.
- op
Types 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
- Condition
Column string - Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
- Condition
Operator string - Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
- Condition
Order stringIn Src And Dst - Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
- Condition
Column string - Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
- Condition
Operator string - Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
- Condition
Order stringIn Src And Dst - Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Column String - Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Operator String - Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Order StringIn Src And Dst - Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Column string - Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Operator string - Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Order stringIn Src And Dst - 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_ strin_ src_ and_ dst - Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Column String - Columns covered by the condition. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Operator String - Conditional Override Operation. Note: This field may return null, indicating that no valid value can be obtained.
- condition
Order StringIn Src And Dst - Conditional Override Priority Processing. Note: This field may return null, indicating that no valid value can be obtained.
DtsSyncConfigOptionsDdlOption, DtsSyncConfigOptionsDdlOptionArgs
- Ddl
Object string - 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 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.
- Ddl
Object string - 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 []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 String - 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 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.
- ddl
Object string - 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 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.
- ddl
Object String - 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 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.
- Account
Mode 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.
- Account
Role 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.
- Ccn
Id 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.
- Cvm
Instance stringId - 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 stringEnv - 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 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.
- Db
Name 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.
- Encrypt
Conn 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.
- Engine
Version 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.
- Instance
Id 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.
- Role
External stringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- Subnet
Id 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.
- Tmp
Secret stringId - 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 stringKey - 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 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.
- Uniq
Dcg stringId - 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 stringGw Id - 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.
- Vpc
Id 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.
- Account
Mode 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.
- Account
Role 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.
- Ccn
Id 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.
- Cvm
Instance stringId - 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 stringEnv - 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 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.
- Db
Name 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.
- Encrypt
Conn 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.
- Engine
Version 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.
- Instance
Id 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.
- Role
External stringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- Subnet
Id 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.
- Tmp
Secret stringId - 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 stringKey - 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 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.
- Uniq
Dcg stringId - 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 stringGw Id - 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.
- Vpc
Id 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.
- account
Mode 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.
- account
Role 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.
- ccn
Id 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.
- cvm
Instance StringId - 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 StringEnv - 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 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.
- db
Name 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.
- encrypt
Conn 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.
- engine
Version 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.
- instance
Id 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.
- role
External StringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- subnet
Id 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.
- tmp
Secret StringId - 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 StringKey - 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 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.
- uniq
Dcg StringId - 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 StringGw Id - 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.
- vpc
Id 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.
- account
Mode 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.
- account
Role 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.
- ccn
Id 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.
- cvm
Instance stringId - 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 stringEnv - 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 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.
- db
Name 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.
- encrypt
Conn 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.
- engine
Version 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.
- instance
Id 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.
- role
External stringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- subnet
Id 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.
- tmp
Secret stringId - 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 stringKey - 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 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.
- uniq
Dcg stringId - 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 stringGw Id - 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.
- vpc
Id 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_ strid - 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_ strenv - 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_ strid - 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_ strid - 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_ strkey - 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_ strid - 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_ strgw_ id - 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.
- account
Mode 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.
- account
Role 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.
- ccn
Id 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.
- cvm
Instance StringId - 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 StringEnv - 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 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.
- db
Name 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.
- encrypt
Conn 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.
- engine
Version 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.
- instance
Id 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.
- role
External StringId - External role id. Note: This field may return null, indicating that no valid value can be obtained.
- subnet
Id 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.
- tmp
Secret StringId - 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 StringKey - 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 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.
- uniq
Dcg StringId - 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 StringGw Id - 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.
- vpc
Id 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
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.