MigrationInstance

class MigrationInstance : KotlinCustomResource

Provides a DTS Migration Instance resource. For information about DTS Migration Instance and how to use it, see What is Synchronization Instance.

NOTE: Available since v1.157.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.dts.MigrationInstance;
import com.pulumi.alicloud.dts.MigrationInstanceArgs;
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 defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultMigrationInstance = new MigrationInstance("defaultMigrationInstance", MigrationInstanceArgs.builder()
.paymentType("PayAsYouGo")
.sourceEndpointEngineName("MySQL")
.sourceEndpointRegion(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.destinationEndpointEngineName("MySQL")
.destinationEndpointRegion(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.instanceClass("small")
.syncArchitecture("oneway")
.build());
}
}

Import

DTS Migration Instance can be imported using the id, e.g.

$ pulumi import alicloud:dts/migrationInstance:MigrationInstance example <id>

Properties

Link copied to clipboard
val computeUnit: Output<Int>?

ETL specifications. The unit is the computing unit ComputeUnit (CU), 1CU=1vCPU+4 GB memory. The value range is an integer greater than or equal to 2.

Link copied to clipboard
val databaseCount: Output<Int>?

The number of private customized RDS instances under PolarDB-X. The default value is 1. This parameter needs to be passed only when source_endpoint_engine_name equals drds.

Link copied to clipboard

The type of destination engine. Valid values: ADS, DB2, DRDS, DataHub, Greenplum, MSSQL, MySQL, PolarDB, PostgreSQL, Redis, Tablestore, as400, clickhouse, kafka, mongodb, odps, oracle, polardb_o, polardb_pg, tidb. For the correspondence between the supported source and target libraries, see Supported Databases, Synchronization Initialization Types and Synchronization Topologies, Supported Databases and Migration Types.

Link copied to clipboard

The region of destination instance. List of supported regions.

Link copied to clipboard
val dtsInstanceId: Output<String>

The ID of the Migration Instance.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceClass: Output<String>

The instance class. Valid values: large, medium, small, xlarge, xxlarge. You can only upgrade the configuration, not downgrade the configuration. If you downgrade the instance, you need to submit a ticket.

Link copied to clipboard
val paymentType: Output<String>

The payment type of the resource. Valid values: PayAsYouGo.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The type of source endpoint engine. Valid values: ADS, DB2, DRDS, DataHub, Greenplum, MSSQL, MySQL, PolarDB, PostgreSQL, Redis, Tablestore, as400, clickhouse, kafka, mongodb, odps, oracle, polardb_o, polardb_pg, tidb. For the correspondence between the supported source and target libraries, see Supported Databases, Synchronization Initialization Types and Synchronization Topologies, Supported Databases and Migration Types.

Link copied to clipboard

The region of source instance.

Link copied to clipboard
val status: Output<String>

The status.

Link copied to clipboard
val syncArchitecture: Output<String>?

The sync architecture. Valid values: oneway.

Link copied to clipboard
val tags: Output<Map<String, Any>>?

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>