ALIYUN::DMS::Instance registers a database instance for your enterprise.
Syntax
{
"Type": "ALIYUN::DMS::Instance",
"Properties": {
"InstanceSource": String,
"DatabasePassword": String,
"Port": Integer,
"Host": String,
"ExportTimeout": Integer,
"SafeRule": String,
"DdlOnline": Integer,
"EnvType": String,
"Tid": Integer,
"UseDsql": Integer,
"Sid": String,
"EcsInstanceId": String,
"VpcId": String,
"InstanceAlias": String,
"DbaUid": Integer,
"EcsRegion": String,
"NetworkType": String,
"DatabaseUser": String,
"InstanceType": String,
"DataLinkName": String,
"QueryTimeout": Integer
}
}
Properties
|
Property Name |
Type |
Required |
Allow updates |
Description |
Constraint |
|
InstanceSource |
String |
Yes |
No |
The source of the database instance. |
Valid values:
|
|
DatabasePassword |
String |
Yes |
Yes |
The password for connecting to the database instance. |
None. |
|
Port |
Integer |
Yes |
No |
The connection port of the database instance. |
None. |
|
Host |
String |
Yes |
No |
The endpoint of the database instance. |
None. |
|
ExportTimeout |
Integer |
Yes |
Yes |
The timeout period for exporting data. |
Unit: seconds. |
|
SafeRule |
String |
Yes |
Yes |
The security rule for the database instance. Use a rule defined in your enterprise. |
None. |
|
DdlOnline |
Integer |
No |
No |
Whether to enable the online DDL service. |
Valid values:
Note
Supported only for MySQL and PolarDB. |
|
EnvType |
String |
Yes |
Yes |
The environment type. |
Valid values:
|
|
Tid |
Integer |
No |
No |
The tenant ID. |
None. |
|
UseDsql |
Integer |
No |
No |
Whether to enable cross-instance queries. |
Valid values:
|
|
Sid |
String |
No |
No |
The system ID (SID) of the database. |
Required when InstanceType is PostgreSQL or Oracle. |
|
EcsInstanceId |
String |
No |
No |
The ID of the ECS instance. |
Required when InstanceSource is ECS_OWN. |
|
VpcId |
String |
No |
No |
The VPC ID. |
Required when InstanceSource is VPC_IDC. |
|
InstanceAlias |
String |
Yes |
Yes |
The name of the database instance. |
None. |
|
DbaUid |
Integer |
Yes |
No |
The Alibaba Cloud UID of the database instance owner. |
None. |
|
EcsRegion |
String |
No |
No |
The region where the instance resides. |
Required when InstanceSource is RDS, ECS_OWN, or VPC_IDC. |
|
NetworkType |
String |
Yes |
No |
The network type. |
Valid values:
|
|
DatabaseUser |
String |
Yes |
Yes |
The username for connecting to the database instance. |
None. |
|
InstanceType |
String |
Yes |
No |
The type of the database instance. |
Valid values:
|
|
DataLinkName |
String |
No |
No |
The data link name for cross-database queries. |
None. |
|
QueryTimeout |
Integer |
Yes |
Yes |
The timeout period for querying data. |
Unit: seconds. |
Return values
Fn::GetAtt
-
InstanceId: the database instance ID.
-
Port: the connection port of the database instance.
-
Host: the endpoint of the database instance.