EnterpriseInstance
Provides a DMS Enterprise Instance resource.
NOTE: API users must first register in DMS. NOTE: Available in 1.81.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Dms.EnterpriseInstance("default", new AliCloud.Dms.EnterpriseInstanceArgs
{
DatabasePassword = "Yourpassword123",
DatabaseUser = "your_user_name",
DbaUid = "1182725234xxxxxxx",
EcsRegion = "cn-shanghai",
EnvType = "test",
ExportTimeout = 600,
Host = "rm-uf648hgsxxxxxx.mysql.rds.aliyuncs.com",
InstanceAlias = "your_alias_name",
InstanceSource = "RDS",
InstanceType = "MySQL",
NetworkType = "VPC",
Port = 3306,
QueryTimeout = 60,
SafeRule = "自由操作",
Tid = 12345,
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.dms.EnterpriseInstance("default",
database_password="Yourpassword123",
database_user="your_user_name",
dba_uid="1182725234xxxxxxx",
ecs_region="cn-shanghai",
env_type="test",
export_timeout=600,
host="rm-uf648hgsxxxxxx.mysql.rds.aliyuncs.com",
instance_alias="your_alias_name",
instance_source="RDS",
instance_type="MySQL",
network_type="VPC",
port=3306,
query_timeout=60,
safe_rule="自由操作",
tid="12345")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultEnterpriseInstance = new alicloud.dms.EnterpriseInstance("default", {
databasePassword: "Yourpassword123",
databaseUser: "your_user_name",
dbaUid: Number.parseFloat("1182725234xxxxxxx"),
ecsRegion: "cn-shanghai",
envType: "test",
exportTimeout: 600,
host: "rm-uf648hgsxxxxxx.mysql.rds.aliyuncs.com",
instanceAlias: "your_alias_name",
instanceSource: "RDS",
instanceType: "MySQL",
networkType: "VPC",
port: 3306,
queryTimeout: 60,
safeRule: "自由操作",
tid: 12345,
});Create a EnterpriseInstance Resource
new EnterpriseInstance(name: string, args: EnterpriseInstanceArgs, opts?: CustomResourceOptions);def EnterpriseInstance(resource_name, opts=None, data_link_name=None, database_password=None, database_user=None, dba_id=None, dba_uid=None, ddl_online=None, ecs_instance_id=None, ecs_region=None, env_type=None, export_timeout=None, host=None, instance_alias=None, instance_id=None, instance_source=None, instance_type=None, network_type=None, port=None, query_timeout=None, safe_rule=None, safe_rule_id=None, sid=None, tid=None, use_dsql=None, vpc_id=None, __props__=None);func NewEnterpriseInstance(ctx *Context, name string, args EnterpriseInstanceArgs, opts ...ResourceOption) (*EnterpriseInstance, error)public EnterpriseInstance(string name, EnterpriseInstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args EnterpriseInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnterpriseInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnterpriseInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
EnterpriseInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The EnterpriseInstance resource accepts the following input properties:
- Database
Password string Database access password.
- Database
User string Database access account.
- Dba
Uid int The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- Env
Type string Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- Export
Timeout int Export timeout, unit: s (seconds).
- Host string
Host address of the target database.
- Instance
Alias string Instance alias, to help users quickly distinguish positioning.
- Instance
Source string The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- Instance
Type string Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- Network
Type string Network type. Valid values:
CLASSIC,VPC.- Port int
Access port of the target database.
- Query
Timeout int Query timeout time, unit: s (seconds).
- Safe
Rule string The security rule of the instance is passed into the name of the security rule in the enterprise.
- Data
Link stringName Cross-database query datalink name.
- Dba
Id string - Ddl
Online int Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- Ecs
Instance stringId ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- Ecs
Region 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.
- Instance
Id string - Safe
Rule stringId - Sid string
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- Tid int
The tenant ID.
- Use
Dsql int Whether to enable cross-instance query. Valid values:
0not open,1open.- Vpc
Id string VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
- Database
Password string Database access password.
- Database
User string Database access account.
- Dba
Uid int The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- Env
Type string Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- Export
Timeout int Export timeout, unit: s (seconds).
- Host string
Host address of the target database.
- Instance
Alias string Instance alias, to help users quickly distinguish positioning.
- Instance
Source string The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- Instance
Type string Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- Network
Type string Network type. Valid values:
CLASSIC,VPC.- Port int
Access port of the target database.
- Query
Timeout int Query timeout time, unit: s (seconds).
- Safe
Rule string The security rule of the instance is passed into the name of the security rule in the enterprise.
- Data
Link stringName Cross-database query datalink name.
- Dba
Id string - Ddl
Online int Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- Ecs
Instance stringId ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- Ecs
Region 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.
- Instance
Id string - Safe
Rule stringId - Sid string
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- Tid int
The tenant ID.
- Use
Dsql int Whether to enable cross-instance query. Valid values:
0not open,1open.- Vpc
Id string VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
- database
Password string Database access password.
- database
User string Database access account.
- dba
Uid number The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- env
Type string Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- export
Timeout number Export timeout, unit: s (seconds).
- host string
Host address of the target database.
- instance
Alias string Instance alias, to help users quickly distinguish positioning.
- instance
Source string The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- instance
Type string Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- network
Type string Network type. Valid values:
CLASSIC,VPC.- port number
Access port of the target database.
- query
Timeout number Query timeout time, unit: s (seconds).
- safe
Rule string The security rule of the instance is passed into the name of the security rule in the enterprise.
- data
Link stringName Cross-database query datalink name.
- dba
Id string - ddl
Online number Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- ecs
Instance stringId ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- ecs
Region 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.
- instance
Id string - safe
Rule stringId - sid string
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- tid number
The tenant ID.
- use
Dsql number Whether to enable cross-instance query. Valid values:
0not open,1open.- vpc
Id string VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
- database_
password str Database access password.
- database_
user str Database access account.
- dba_
uid float The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- env_
type str Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- export_
timeout float Export timeout, unit: s (seconds).
- host str
Host address of the target database.
- instance_
alias str Instance alias, to help users quickly distinguish positioning.
- instance_
source str The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- instance_
type str Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- network_
type str Network type. Valid values:
CLASSIC,VPC.- port float
Access port of the target database.
- query_
timeout float Query timeout time, unit: s (seconds).
- safe_
rule str The security rule of the instance is passed into the name of the security rule in the enterprise.
- data_
link_ strname Cross-database query datalink name.
- dba_
id str - ddl_
online float Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- ecs_
instance_ strid ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- ecs_
region str 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.
- instance_
id str - safe_
rule_ strid - sid str
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- tid float
The tenant ID.
- use_
dsql float Whether to enable cross-instance query. Valid values:
0not open,1open.- vpc_
id str VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnterpriseInstance resource produces the following output properties:
Look up an Existing EnterpriseInstance Resource
Get an existing EnterpriseInstance 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?: EnterpriseInstanceState, opts?: CustomResourceOptions): EnterpriseInstancestatic get(resource_name, id, opts=None, data_link_name=None, database_password=None, database_user=None, dba_id=None, dba_nick_name=None, dba_uid=None, ddl_online=None, ecs_instance_id=None, ecs_region=None, env_type=None, export_timeout=None, host=None, instance_alias=None, instance_id=None, instance_source=None, instance_type=None, network_type=None, port=None, query_timeout=None, safe_rule=None, safe_rule_id=None, sid=None, state=None, tid=None, use_dsql=None, vpc_id=None, __props__=None);func GetEnterpriseInstance(ctx *Context, name string, id IDInput, state *EnterpriseInstanceState, opts ...ResourceOption) (*EnterpriseInstance, error)public static EnterpriseInstance Get(string name, Input<string> id, EnterpriseInstanceState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Data
Link stringName Cross-database query datalink name.
- Database
Password string Database access password.
- Database
User string Database access account.
- Dba
Id string - Dba
Nick stringName The instance dba nickname.
- Dba
Uid int The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- Ddl
Online int Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- Ecs
Instance stringId ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- Ecs
Region 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.
- Env
Type string Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- Export
Timeout int Export timeout, unit: s (seconds).
- Host string
Host address of the target database.
- Instance
Alias string Instance alias, to help users quickly distinguish positioning.
- Instance
Id string - Instance
Source string The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- Instance
Type string Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- Network
Type string Network type. Valid values:
CLASSIC,VPC.- Port int
Access port of the target database.
- Query
Timeout int Query timeout time, unit: s (seconds).
- Safe
Rule string The security rule of the instance is passed into the name of the security rule in the enterprise.
- Safe
Rule stringId - Sid string
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- State string
The instance status.
- Tid int
The tenant ID.
- Use
Dsql int Whether to enable cross-instance query. Valid values:
0not open,1open.- Vpc
Id string VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
- Data
Link stringName Cross-database query datalink name.
- Database
Password string Database access password.
- Database
User string Database access account.
- Dba
Id string - Dba
Nick stringName The instance dba nickname.
- Dba
Uid int The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- Ddl
Online int Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- Ecs
Instance stringId ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- Ecs
Region 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.
- Env
Type string Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- Export
Timeout int Export timeout, unit: s (seconds).
- Host string
Host address of the target database.
- Instance
Alias string Instance alias, to help users quickly distinguish positioning.
- Instance
Id string - Instance
Source string The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- Instance
Type string Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- Network
Type string Network type. Valid values:
CLASSIC,VPC.- Port int
Access port of the target database.
- Query
Timeout int Query timeout time, unit: s (seconds).
- Safe
Rule string The security rule of the instance is passed into the name of the security rule in the enterprise.
- Safe
Rule stringId - Sid string
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- State string
The instance status.
- Tid int
The tenant ID.
- Use
Dsql int Whether to enable cross-instance query. Valid values:
0not open,1open.- Vpc
Id string VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
- data
Link stringName Cross-database query datalink name.
- database
Password string Database access password.
- database
User string Database access account.
- dba
Id string - dba
Nick stringName The instance dba nickname.
- dba
Uid number The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- ddl
Online number Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- ecs
Instance stringId ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- ecs
Region 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.
- env
Type string Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- export
Timeout number Export timeout, unit: s (seconds).
- host string
Host address of the target database.
- instance
Alias string Instance alias, to help users quickly distinguish positioning.
- instance
Id string - instance
Source string The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- instance
Type string Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- network
Type string Network type. Valid values:
CLASSIC,VPC.- port number
Access port of the target database.
- query
Timeout number Query timeout time, unit: s (seconds).
- safe
Rule string The security rule of the instance is passed into the name of the security rule in the enterprise.
- safe
Rule stringId - sid string
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- state string
The instance status.
- tid number
The tenant ID.
- use
Dsql number Whether to enable cross-instance query. Valid values:
0not open,1open.- vpc
Id string VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
- data_
link_ strname Cross-database query datalink name.
- database_
password str Database access password.
- database_
user str Database access account.
- dba_
id str - dba_
nick_ strname The instance dba nickname.
- dba_
uid float The DBA of the instance is passed into the Alibaba Cloud uid of the DBA.
- ddl_
online float Whether to use online services, currently only supports MySQL and PolarDB. Valid values:
0Not used,1Native online DDL priority,2DMS lock-free table structure change priority.- ecs_
instance_ strid ECS instance ID. The value of InstanceSource is the ECS self-built library. This value must be passed.
- ecs_
region str 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.
- env_
type str Environment type. Valid values:
productproduction environment,devdevelopment environment,prepre-release environment,testtest environment,sitSIT environment,uatUAT environment,petpressure test environment,stagSTAG environment.- export_
timeout float Export timeout, unit: s (seconds).
- host str
Host address of the target database.
- instance_
alias str Instance alias, to help users quickly distinguish positioning.
- instance_
id str - instance_
source str The source of the database instance. Valid values:
PUBLIC_OWN,RDS,ECS_OWN,VPC_IDC.- instance_
type str Database type. Valid values:
MySQL,SQLServer,PostgreSQL,Oracle,DRDS,OceanBase,Mongo,Redis.- network_
type str Network type. Valid values:
CLASSIC,VPC.- port float
Access port of the target database.
- query_
timeout float Query timeout time, unit: s (seconds).
- safe_
rule str The security rule of the instance is passed into the name of the security rule in the enterprise.
- safe_
rule_ strid - sid str
The SID. This value must be passed when InstanceType is PostgreSQL or Oracle.
- state str
The instance status.
- tid float
The tenant ID.
- use_
dsql float Whether to enable cross-instance query. Valid values:
0not open,1open.- vpc_
id str VPC ID. This value must be passed when the value of InstanceSource is VPC dedicated line IDC.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.