EnterpriseInstance

Provides a DMS Enterprise Instance resource.

NOTE: API users must first register in DMS. NOTE: Available in 1.81.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dms.EnterpriseInstance;
import com.pulumi.alicloud.dms.EnterpriseInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new EnterpriseInstance("default", EnterpriseInstanceArgs.builder()
.databasePassword("Yourpassword123")
.databaseUser("your_user_name")
.dbaUid("1182725234xxxxxxx")
.ecsRegion("cn-shanghai")
.envType("test")
.exportTimeout(600)
.host("rm-uf648hgsxxxxxx.mysql.rds.aliyuncs.com")
.instanceName("your_alias_name")
.instanceSource("RDS")
.instanceType("MySQL")
.networkType("VPC")
.port(3306)
.queryTimeout(60)
.safeRule("自由操作")
.tid("12345")
.build());
}
}

Import

DMS Enterprise can be imported using host and port, e.g.

$ pulumi import alicloud:dms/enterpriseInstance:EnterpriseInstance example rm-uf648hgs7874xxxx.mysql.rds.aliyuncs.com:3306

Properties

Link copied to clipboard

Database access password.

Link copied to clipboard
val databaseUser: Output<String>

Database access account.

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

Cross-database query datalink name.

Link copied to clipboard
val dbaId: Output<String>

The dba id of the database instance.

Link copied to clipboard
val dbaNickName: Output<String>

The instance dba nickname.

Link copied to clipboard
val dbaUid: Output<Int>

The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.

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

Whether to use online services, currently only supports MySQL and PolarDB. Valid values: 0 Not used, 1 Native online DDL priority, 2 DMS lock-free table structure change priority.

Link copied to clipboard
val ecsInstanceId: Output<String>

ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.

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

The region where the instance is located. This value must be passed when the value of InstanceSource is RDS, ECS self-built library, and VPC dedicated line IDC.

Link copied to clipboard
val envType: Output<String>

Environment type. Valid values: product production environment, dev development environment, pre pre-release environment, test test environment, sit SIT environment, uat UAT environment, pet pressure test environment, stag STAG environment.

Link copied to clipboard
val exportTimeout: Output<Int>

Export timeout, unit: s (seconds).

Link copied to clipboard
val host: Output<String>

Host address of the target database.

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

Field instance_alias has been deprecated from version 1.100.0. Use instance_name instead.

Link copied to clipboard
val instanceId: Output<String>

The instance id of the database instance.

Link copied to clipboard
val instanceName: Output<String>

Instance name, to help users quickly distinguish positioning.

Link copied to clipboard
val instanceSource: Output<String>

The source of the database instance. Valid values: PUBLIC_OWN, RDS, ECS_OWN, VPC_IDC.

Link copied to clipboard
val instanceType: Output<String>

Database type. Valid values: MySQL, SQLServer, PostgreSQL, Oracle, DRDS, OceanBase, Mongo, Redis.

Link copied to clipboard
val networkType: Output<String>

Network type. Valid values: CLASSIC, VPC.

Link copied to clipboard
val port: Output<Int>

Access port of the target database.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val queryTimeout: Output<Int>

Query timeout time, unit: s (seconds).

Link copied to clipboard
val safeRule: Output<String>

The security rule of the instance is passed into the name of the security rule in the enterprise.

Link copied to clipboard
val safeRuleId: Output<String>

The safe rule id of the database instance.

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

The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.

Link copied to clipboard
val skipTest: Output<Boolean>?

Whether the instance ignores test connectivity. Valid values: true, false.

Link copied to clipboard
val state: Output<String>

It has been deprecated from provider version 1.100.0 and 'status' instead.

Link copied to clipboard
val status: Output<String>

The instance status.

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

The tenant ID.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val useDsql: Output<Int>?

Whether to enable cross-instance query. Valid values: 0 not open, 1 open.

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

VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.