alicloud.dts.Instance
Explore with Pulumi AI
Provides a Dts Instance resource.
For information about Dts Instance and how to use it, see What is Instance.
NOTE: Available since v1.198.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const default = alicloud.resourcemanager.getResourceGroups({
status: "OK",
});
const defaultGetRegions = alicloud.getRegions({
current: true,
});
const defaultInstance = new alicloud.dts.Instance("default", {
type: "sync",
resourceGroupId: _default.then(_default => _default.ids?.[0]),
paymentType: "Subscription",
instanceClass: "large",
sourceEndpointEngineName: "MySQL",
sourceRegion: defaultGetRegions.then(defaultGetRegions => defaultGetRegions.regions?.[0]?.id),
destinationEndpointEngineName: "MySQL",
destinationRegion: defaultGetRegions.then(defaultGetRegions => defaultGetRegions.regions?.[0]?.id),
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.resourcemanager.get_resource_groups(status="OK")
default_get_regions = alicloud.get_regions(current=True)
default_instance = alicloud.dts.Instance("default",
type="sync",
resource_group_id=default.ids[0],
payment_type="Subscription",
instance_class="large",
source_endpoint_engine_name="MySQL",
source_region=default_get_regions.regions[0].id,
destination_endpoint_engine_name="MySQL",
destination_region=default_get_regions.regions[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dts"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
Status: pulumi.StringRef("OK"),
}, nil)
if err != nil {
return err
}
defaultGetRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
Current: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
_, err = dts.NewInstance(ctx, "default", &dts.InstanceArgs{
Type: pulumi.String("sync"),
ResourceGroupId: pulumi.String(_default.Ids[0]),
PaymentType: pulumi.String("Subscription"),
InstanceClass: pulumi.String("large"),
SourceEndpointEngineName: pulumi.String("MySQL"),
SourceRegion: pulumi.String(defaultGetRegions.Regions[0].Id),
DestinationEndpointEngineName: pulumi.String("MySQL"),
DestinationRegion: pulumi.String(defaultGetRegions.Regions[0].Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
{
Status = "OK",
});
var defaultGetRegions = AliCloud.GetRegions.Invoke(new()
{
Current = true,
});
var defaultInstance = new AliCloud.Dts.Instance("default", new()
{
Type = "sync",
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
PaymentType = "Subscription",
InstanceClass = "large",
SourceEndpointEngineName = "MySQL",
SourceRegion = defaultGetRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
DestinationEndpointEngineName = "MySQL",
DestinationRegion = defaultGetRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.dts.Instance;
import com.pulumi.alicloud.dts.InstanceArgs;
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 default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
final var defaultGetRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.type("sync")
.resourceGroupId(default_.ids()[0])
.paymentType("Subscription")
.instanceClass("large")
.sourceEndpointEngineName("MySQL")
.sourceRegion(defaultGetRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.destinationEndpointEngineName("MySQL")
.destinationRegion(defaultGetRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.build());
}
}
resources:
defaultInstance:
type: alicloud:dts:Instance
name: default
properties:
type: sync
resourceGroupId: ${default.ids[0]}
paymentType: Subscription
instanceClass: large
sourceEndpointEngineName: MySQL
sourceRegion: ${defaultGetRegions.regions[0].id}
destinationEndpointEngineName: MySQL
destinationRegion: ${defaultGetRegions.regions[0].id}
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments:
status: OK
defaultGetRegions:
fn::invoke:
Function: alicloud:getRegions
Arguments:
current: true
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args?: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: Optional[InstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_pay: Optional[bool] = None,
auto_start: Optional[bool] = None,
compute_unit: Optional[int] = None,
database_count: Optional[int] = None,
destination_endpoint_engine_name: Optional[str] = None,
destination_region: Optional[str] = None,
du: Optional[int] = None,
fee_type: Optional[str] = None,
instance_class: Optional[str] = None,
job_id: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
resource_group_id: Optional[str] = None,
source_endpoint_engine_name: Optional[str] = None,
source_region: Optional[str] = None,
sync_architecture: Optional[str] = None,
synchronization_direction: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
used_time: Optional[int] = None)
func NewInstance(ctx *Context, name string, args *InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs? args = null, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:dts:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromDtsinstance = new AliCloud.Dts.Instance("exampleinstanceResourceResourceFromDtsinstance", new()
{
AutoPay = false,
AutoStart = false,
ComputeUnit = 0,
DatabaseCount = 0,
DestinationEndpointEngineName = "string",
DestinationRegion = "string",
Du = 0,
FeeType = "string",
InstanceClass = "string",
JobId = "string",
PaymentType = "string",
Period = "string",
ResourceGroupId = "string",
SourceEndpointEngineName = "string",
SourceRegion = "string",
SyncArchitecture = "string",
SynchronizationDirection = "string",
Tags =
{
{ "string", "string" },
},
Type = "string",
UsedTime = 0,
});
example, err := dts.NewInstance(ctx, "exampleinstanceResourceResourceFromDtsinstance", &dts.InstanceArgs{
AutoPay: pulumi.Bool(false),
AutoStart: pulumi.Bool(false),
ComputeUnit: pulumi.Int(0),
DatabaseCount: pulumi.Int(0),
DestinationEndpointEngineName: pulumi.String("string"),
DestinationRegion: pulumi.String("string"),
Du: pulumi.Int(0),
FeeType: pulumi.String("string"),
InstanceClass: pulumi.String("string"),
JobId: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Period: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SourceEndpointEngineName: pulumi.String("string"),
SourceRegion: pulumi.String("string"),
SyncArchitecture: pulumi.String("string"),
SynchronizationDirection: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
UsedTime: pulumi.Int(0),
})
var exampleinstanceResourceResourceFromDtsinstance = new Instance("exampleinstanceResourceResourceFromDtsinstance", InstanceArgs.builder()
.autoPay(false)
.autoStart(false)
.computeUnit(0)
.databaseCount(0)
.destinationEndpointEngineName("string")
.destinationRegion("string")
.du(0)
.feeType("string")
.instanceClass("string")
.jobId("string")
.paymentType("string")
.period("string")
.resourceGroupId("string")
.sourceEndpointEngineName("string")
.sourceRegion("string")
.syncArchitecture("string")
.synchronizationDirection("string")
.tags(Map.of("string", "string"))
.type("string")
.usedTime(0)
.build());
exampleinstance_resource_resource_from_dtsinstance = alicloud.dts.Instance("exampleinstanceResourceResourceFromDtsinstance",
auto_pay=False,
auto_start=False,
compute_unit=0,
database_count=0,
destination_endpoint_engine_name="string",
destination_region="string",
du=0,
fee_type="string",
instance_class="string",
job_id="string",
payment_type="string",
period="string",
resource_group_id="string",
source_endpoint_engine_name="string",
source_region="string",
sync_architecture="string",
synchronization_direction="string",
tags={
"string": "string",
},
type="string",
used_time=0)
const exampleinstanceResourceResourceFromDtsinstance = new alicloud.dts.Instance("exampleinstanceResourceResourceFromDtsinstance", {
autoPay: false,
autoStart: false,
computeUnit: 0,
databaseCount: 0,
destinationEndpointEngineName: "string",
destinationRegion: "string",
du: 0,
feeType: "string",
instanceClass: "string",
jobId: "string",
paymentType: "string",
period: "string",
resourceGroupId: "string",
sourceEndpointEngineName: "string",
sourceRegion: "string",
syncArchitecture: "string",
synchronizationDirection: "string",
tags: {
string: "string",
},
type: "string",
usedTime: 0,
});
type: alicloud:dts:Instance
properties:
autoPay: false
autoStart: false
computeUnit: 0
databaseCount: 0
destinationEndpointEngineName: string
destinationRegion: string
du: 0
feeType: string
instanceClass: string
jobId: string
paymentType: string
period: string
resourceGroupId: string
sourceEndpointEngineName: string
sourceRegion: string
syncArchitecture: string
synchronizationDirection: string
tags:
string: string
type: string
usedTime: 0
Instance 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 Instance resource accepts the following input properties:
- Auto
Pay bool - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- Auto
Start bool - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- Compute
Unit int - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- Database
Count int - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- Destination
Endpoint stringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Destination
Region string - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Du int
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- Fee
Type string - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - Instance
Class string - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- Job
Id string - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - Period string
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - Resource
Group stringId - Resource Group ID.
- Source
Endpoint stringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Source
Region string - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Sync
Architecture string - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- Synchronization
Direction string - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Dictionary<string, string>
- The tag value corresponding to the tag key.See the following
Block Tags
. - Type string
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- Used
Time int - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- Auto
Pay bool - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- Auto
Start bool - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- Compute
Unit int - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- Database
Count int - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- Destination
Endpoint stringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Destination
Region string - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Du int
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- Fee
Type string - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - Instance
Class string - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- Job
Id string - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - Period string
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - Resource
Group stringId - Resource Group ID.
- Source
Endpoint stringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Source
Region string - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Sync
Architecture string - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- Synchronization
Direction string - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- map[string]string
- The tag value corresponding to the tag key.See the following
Block Tags
. - Type string
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- Used
Time int - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto
Pay Boolean - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto
Start Boolean - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute
Unit Integer - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- database
Count Integer - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination
Endpoint StringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination
Region String - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- du Integer
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee
Type String - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance
Class String - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- job
Id String - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period String
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource
Group StringId - Resource Group ID.
- source
Endpoint StringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source
Region String - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- sync
Architecture String - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization
Direction String - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Map<String,String>
- The tag value corresponding to the tag key.See the following
Block Tags
. - type String
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used
Time Integer - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto
Pay boolean - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto
Start boolean - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute
Unit number - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- database
Count number - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination
Endpoint stringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination
Region string - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- du number
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee
Type string - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance
Class string - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- job
Id string - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period string
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource
Group stringId - Resource Group ID.
- source
Endpoint stringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source
Region string - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- sync
Architecture string - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization
Direction string - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- {[key: string]: string}
- The tag value corresponding to the tag key.See the following
Block Tags
. - type string
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used
Time number - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto_
pay bool - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto_
start bool - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute_
unit int - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- database_
count int - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination_
endpoint_ strengine_ name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination_
region str - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- du int
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee_
type str - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance_
class str - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- job_
id str - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment_
type str - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period str
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource_
group_ strid - Resource Group ID.
- source_
endpoint_ strengine_ name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source_
region str - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- sync_
architecture str - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization_
direction str - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Mapping[str, str]
- The tag value corresponding to the tag key.See the following
Block Tags
. - type str
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used_
time int - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto
Pay Boolean - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto
Start Boolean - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute
Unit Number - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- database
Count Number - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination
Endpoint StringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination
Region String - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- du Number
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee
Type String - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance
Class String - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- job
Id String - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period String
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource
Group StringId - Resource Group ID.
- source
Endpoint StringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source
Region String - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- sync
Architecture String - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization
Direction String - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Map<String>
- The tag value corresponding to the tag key.See the following
Block Tags
. - type String
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used
Time Number - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Create
Time string - Instance creation time
- Dts
Instance stringId - The ID of the subscription instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Name string - The name of Dts instance.
- Status string
- Instance status.
- Create
Time string - Instance creation time
- Dts
Instance stringId - The ID of the subscription instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Name string - The name of Dts instance.
- Status string
- Instance status.
- create
Time String - Instance creation time
- dts
Instance StringId - The ID of the subscription instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Name String - The name of Dts instance.
- status String
- Instance status.
- create
Time string - Instance creation time
- dts
Instance stringId - The ID of the subscription instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Name string - The name of Dts instance.
- status string
- Instance status.
- create_
time str - Instance creation time
- dts_
instance_ strid - The ID of the subscription instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
name str - The name of Dts instance.
- status str
- Instance status.
- create
Time String - Instance creation time
- dts
Instance StringId - The ID of the subscription instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Name String - The name of Dts instance.
- status String
- Instance status.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_pay: Optional[bool] = None,
auto_start: Optional[bool] = None,
compute_unit: Optional[int] = None,
create_time: Optional[str] = None,
database_count: Optional[int] = None,
destination_endpoint_engine_name: Optional[str] = None,
destination_region: Optional[str] = None,
dts_instance_id: Optional[str] = None,
du: Optional[int] = None,
fee_type: Optional[str] = None,
instance_class: Optional[str] = None,
instance_name: Optional[str] = None,
job_id: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
resource_group_id: Optional[str] = None,
source_endpoint_engine_name: Optional[str] = None,
source_region: Optional[str] = None,
status: Optional[str] = None,
sync_architecture: Optional[str] = None,
synchronization_direction: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
used_time: Optional[int] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Pay bool - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- Auto
Start bool - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- Compute
Unit int - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- Create
Time string - Instance creation time
- Database
Count int - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- Destination
Endpoint stringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Destination
Region string - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Dts
Instance stringId - The ID of the subscription instance.
- Du int
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- Fee
Type string - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - Instance
Class string - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- Instance
Name string - The name of Dts instance.
- Job
Id string - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - Period string
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - Resource
Group stringId - Resource Group ID.
- Source
Endpoint stringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Source
Region string - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Status string
- Instance status.
- Sync
Architecture string - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- Synchronization
Direction string - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Dictionary<string, string>
- The tag value corresponding to the tag key.See the following
Block Tags
. - Type string
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- Used
Time int - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- Auto
Pay bool - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- Auto
Start bool - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- Compute
Unit int - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- Create
Time string - Instance creation time
- Database
Count int - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- Destination
Endpoint stringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Destination
Region string - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Dts
Instance stringId - The ID of the subscription instance.
- Du int
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- Fee
Type string - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - Instance
Class string - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- Instance
Name string - The name of Dts instance.
- Job
Id string - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- Payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - Period string
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - Resource
Group stringId - Resource Group ID.
- Source
Endpoint stringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- Source
Region string - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- Status string
- Instance status.
- Sync
Architecture string - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- Synchronization
Direction string - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- map[string]string
- The tag value corresponding to the tag key.See the following
Block Tags
. - Type string
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- Used
Time int - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto
Pay Boolean - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto
Start Boolean - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute
Unit Integer - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- create
Time String - Instance creation time
- database
Count Integer - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination
Endpoint StringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination
Region String - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- dts
Instance StringId - The ID of the subscription instance.
- du Integer
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee
Type String - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance
Class String - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- instance
Name String - The name of Dts instance.
- job
Id String - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period String
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource
Group StringId - Resource Group ID.
- source
Endpoint StringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source
Region String - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- status String
- Instance status.
- sync
Architecture String - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization
Direction String - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Map<String,String>
- The tag value corresponding to the tag key.See the following
Block Tags
. - type String
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used
Time Integer - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto
Pay boolean - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto
Start boolean - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute
Unit number - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- create
Time string - Instance creation time
- database
Count number - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination
Endpoint stringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination
Region string - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- dts
Instance stringId - The ID of the subscription instance.
- du number
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee
Type string - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance
Class string - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- instance
Name string - The name of Dts instance.
- job
Id string - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment
Type string - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period string
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource
Group stringId - Resource Group ID.
- source
Endpoint stringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source
Region string - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- status string
- Instance status.
- sync
Architecture string - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization
Direction string - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- {[key: string]: string}
- The tag value corresponding to the tag key.See the following
Block Tags
. - type string
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used
Time number - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto_
pay bool - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto_
start bool - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute_
unit int - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- create_
time str - Instance creation time
- database_
count int - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination_
endpoint_ strengine_ name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination_
region str - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- dts_
instance_ strid - The ID of the subscription instance.
- du int
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee_
type str - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance_
class str - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- instance_
name str - The name of Dts instance.
- job_
id str - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment_
type str - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period str
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource_
group_ strid - Resource Group ID.
- source_
endpoint_ strengine_ name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source_
region str - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- status str
- Instance status.
- sync_
architecture str - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization_
direction str - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Mapping[str, str]
- The tag value corresponding to the tag key.See the following
Block Tags
. - type str
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used_
time int - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
- auto
Pay Boolean - Whether to automatically renew the fee when it expires. Valid values:
- false: No, the default value.
- true: Yes.
- auto
Start Boolean - Whether to start the task automatically after the purchase is completed. Value:
- false: No, the default value.
- true: Yes.
- compute
Unit Number - Specifications of ETL. The unit is compute unit (CU),1CU = 1vCPU +4GB of memory. The value range is an integer greater than or equal to 2. NOTE: Enter this parameter and enable ETL to clean and convert data.
- create
Time String - Instance creation time
- database
Count Number - The number of private custom RDS instances in the PolarDB-X. The default value is 1. NOTE: This parameter is required only when source_endpoint_engine_name is DRDS.
- destination
Endpoint StringEngine Name - The target database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute project.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- destination
Region String - The target instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- dts
Instance StringId - The ID of the subscription instance.
- du Number
- Assign a specified number of DU resources to DTS tasks in the DTS exclusive cluster. Valid values: 1 ~ 100. NOTE: The value of this parameter must be within the range of the number of DUs available for the DTS dedicated cluster.
- fee
Type String - Subscription billing type, Valid values:
ONLY_CONFIGURATION_FEE
: charges only configuration fees;CONFIGURATION_FEE_AND_DATA_FEE
: charges configuration fees and data traffic fees. - instance
Class String - The type of the migration or synchronization instance.
- The specifications of the migration instance: xxlarge, xlarge, large, medium, small.
- The types of synchronization instances: large, medium, small, micro.
- NOTE: For performance descriptions of different specifications, see Data Migration Link Specifications and Data Synchronization Link Specifications.
- instance
Name String - The name of Dts instance.
- job
Id String - The ID of the task obtained by calling the ConfigureDtsJob operation (DtsJobId).> After you pass in this parameter, you do not need to pass the source_region, destination_region, type, source_endpoint_engine_name, or destination_endpoint_engine_name parameters. Even if the input is passed in, the configuration in job_id shall prevail.
- payment
Type String - The payment type of the resource. Valid values:
Subscription
,PayAsYouGo
. - period String
- The billing method of the subscription instance. Value:
Year
,Month
. NOTE: This parameter is valid and must be passed in only whenpayment_type
isSubscription
. - resource
Group StringId - Resource Group ID.
- source
Endpoint StringEngine Name - Source instance database engine type.
- MySQL:MySQL databases (including RDS MySQL and self-built MySQL).
- PolarDB:PolarDB MySQL.
- polardb_o:PolarDB O engine.
- polardb_pg:PolarDB PostgreSQL.
- Redis:Redis databases (including apsaradb for Redis and user-created Redis).
- DRDS: cloud-native distributed database PolarDB-X 1.0 and 2.0.
- PostgreSQL: User-created PostgreSQL.
- ODPS:MaxCompute.
- oracle: self-built Oracle.
- mongodb:MongoDB databases (including apsaradb for MongoDB and user-created MongoDB).
- tidb:TiDB database.
- ADS: Cloud native data warehouse AnalyticDB MySQL 2.0.
- ADB30: Cloud native data warehouse AnalyticDB MySQL 3.0.
- Greenplum: Cloud native data warehouse AnalyticDB PostgreSQL.
- MSSQL:SQL Server databases (including RDS SQL Server and self-built SQL Server).
- kafka:Kafka databases (including Kafka and self-built Kafka).
- DataHub: DataHub, an Alibaba cloud streaming data service.
- clickhouse: ClickHouse.
- DB2: self-built DB2 LUW.
- as400:AS/400.
- Tablestore: Tablestore.
- NOTE:
- The default value is MySQL.
- For more information about the supported source and destination databases, see Database, Synchronization Initialization Type, and Synchronization Topology and Supported Database and Migration Type.
- This parameter or job_id must be passed in.
- source
Region String - The source instance region. For more information, see List of supported regions. NOTE: This parameter or job_id must be passed in.
- status String
- Instance status.
- sync
Architecture String - Synchronization topology, value:
- oneway: one-way synchronization, the default value.
- bidirectional: two-way synchronization.
- synchronization
Direction String - The synchronization direction. Default value:
Forward
. Valid values:Forward
: Data is synchronized from the source database to the destination database.Reverse
: Data is synchronized from the destination database to the source database.- NOTE: You can set this parameter to Reverse to delete the reverse synchronization task only if the topology is two-way synchronization.
- Map<String>
- The tag value corresponding to the tag key.See the following
Block Tags
. - type String
- The instance type. Valid values:
- migration: MIGRATION.
- sync: synchronization.
- subscribe: SUBSCRIBE.
- NOTE: This parameter or job_id must be passed in.
- used
Time Number - Prepaid instance purchase duration.
- When period is Month, the values are: 1, 2, 3, 4, 5, 6, 7, 8, and 9.
- When Period is Year, the values are 1, 2, 3, and 5.
- NOTE:
- This parameter is valid and must be passed in only when payment_type is
Subscription
. - The billing method of the subscription instance. You can set the parameter
period
.
Import
Dts Instance can be imported using the id, e.g.
$ pulumi import alicloud:dts/instance:Instance example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.