ALIYUN::DMS::Instance is used to register 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 | Type | Required | Editable | Description | Constraint |
InstanceSource | String | Yes | No | The source of the database instance. | Valid values:
|
DatabasePassword | String | Yes | Yes | The password that is used to connect to the database instance. | None. |
Port | Integer | Yes | No | The port number that is used to connect to the database instance. | None. |
Host | String | Yes | No | The host address that is used to connect to the database instance. | None. |
ExportTimeout | Integer | Yes | Yes | The timeout period for exporting data. | Unit: seconds. |
SafeRule | String | Yes | Yes | The name of the security rule for the database instance. Specify the name of a security rule that belongs to your enterprise. | None. |
DdlOnline | Integer | No | No | Specifies whether to use the lock-free schema change feature. | Valid values:
Note Only MySQL and PolarDB databases are supported. |
EnvType | String | Yes | Yes | The environment type. | Valid values:
|
Tid | Integer | No | No | The tenant ID. | None. |
UseDsql | Integer | No | No | Specifies whether to enable the cross-database query feature for the database instance. | Valid values:
|
Sid | String | No | No | The system ID (SID) of the database instance. | This property must be specified when InstanceType is set to PostgreSQL or Oracle. |
EcsInstanceId | String | No | No | The ID of the ECS instance. | This property must be specified when InstanceSource is set to ECS_OWN. |
VpcId | String | No | No | The VPC ID. | This property must be specified when InstanceSource is set to VPC_IDC. |
InstanceAlias | String | Yes | Yes | The name of the database instance. | None. |
DbaUid | Integer | Yes | No | The user ID of the Alibaba Cloud account to which the database instance belongs. | None. |
EcsRegion | String | No | No | The region ID of the database instance. | This property must be specified when InstanceSource is set to RDS, ECS_OWN, or VPC_IDC. |
NetworkType | String | Yes | No | The network type. | Valid values:
|
DatabaseUser | String | Yes | Yes | The account that is used to connect to the database instance. | None. |
InstanceType | String | Yes | No | The type of the database instance. | Valid values:
|
DataLinkName | String | No | No | The name of the database link for cross-database queries. | None. |
QueryTimeout | Integer | Yes | Yes | The timeout period for querying data. | Unit: seconds. |
Return values
Fn::GetAtt
InstanceId: the ID of the database instance.
Port: the port number that is used to connect to the database instance.
Host: the host address that is used to connect to the database instance.