ALIYUN::DTS::SubscriptionInstance creates a Data Transmission Service (DTS) change tracking instance and configures a change tracking task.
We recommend that you use ALIYUN::DTS::Instance to purchase a DTS instance and ALIYUN::DTS::SubscriptionJob2 to configure a change tracking task.
Syntax
{
"Type": "ALIYUN::DTS::SubscriptionInstance",
"Properties": {
"Configuration": Map,
"SourceEndpointInstanceType": String,
"Period": String,
"PayType": String,
"UsedTime": Integer,
"Tags": List
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Configuration |
Map |
No |
Yes |
The configurations of the change tracking instance. |
|
|
SourceEndpointInstanceType |
String |
No |
No |
The type of the change tracking instance. |
Valid values:
|
|
Period |
String |
No |
No |
The unit of the subscription duration. |
Valid values:
Note
Required when PayType is set to Prepaid. |
|
PayType |
String |
No |
No |
The billing method. |
Valid values:
|
|
UsedTime |
Integer |
No |
No |
The subscription duration. |
Note
Required when PayType is set to Prepaid. |
|
Tags |
List |
No |
Yes |
The tags to add to the change tracking instance. |
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Key |
String |
Yes |
No |
The tag key. |
Must be 1 to 128 characters in length Cannot contain |
|
Value |
String |
No |
No |
The tag value. |
Can be up to 128 characters in length Cannot contain |
Configuration syntax
"Configuration": {
"SubscriptionDataType": Map,
"SubscriptionInstanceName": String,
"SubscriptionInstance": Map,
"SourceEndpoint": Map,
"SubscriptionInstanceNetworkType": String,
"DbList": Map
}
Configuration properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
SubscriptionDataType |
Map |
Yes |
No |
The type of data to track. |
|
|
SubscriptionInstanceName |
String |
No |
No |
The name of the change tracking instance. |
None. |
|
SubscriptionInstance |
Map |
No |
No |
The network configurations of the change tracking instance. |
|
|
SourceEndpoint |
Map |
Yes |
Yes |
The connection information of the source instance. |
|
|
SubscriptionInstanceNetworkType |
String |
No |
No |
The network type of the change tracking instance. |
Valid values:
|
|
DbList |
Map |
No |
No |
The objects to track. |
TableIncludes syntax
"TableIncludes": [
{
"TableName": String
}
]
TableIncludes property
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
TableName |
String |
No |
No |
The name of the table to track. |
None. |
TableExcludes syntax
"TableExcludes": [
{
"TableName": String
}
]
TableExcludes property
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
TableName |
String |
No |
No |
The name of the table to exclude from change tracking in the source database. |
None. |
SubscriptionDataType syntax
"SubscriptionDataType": {
"DML": Boolean,
"DDL": Boolean
}
SubscriptionDataType properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
DML |
Boolean |
Yes |
No |
Specifies whether to track DML statement changes. |
Valid values:
|
|
DDL |
Boolean |
Yes |
No |
Specifies whether to track DDL statement changes. |
Valid values:
|
SubscriptionInstance syntax
"SubscriptionInstance": {
"VPCId": String,
"VSwitchId": String
}
SubscriptionInstance properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
VPCId |
String |
Yes |
No |
The VPC ID of the change tracking instance. |
Takes effect only when SubscriptionInstanceNetworkType is set to |
|
VSwitchId |
String |
Yes |
No |
The vSwitch ID of the change tracking instance. |
Takes effect only when SubscriptionInstanceNetworkType is set to |
SourceEndpoint syntax
"SourceEndpoint": {
"Role": String,
"OracleSID": String,
"UserName": String,
"OwnerID": String,
"InstanceID": String,
"IP": String,
"Port": String,
"DatabaseName": String,
"InstanceType": String,
"Password": String
}
SourceEndpoint properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Role |
String |
No |
No |
The RAM role that the Alibaba Cloud account of the source ApsaraDB RDS instance assigns to the Alibaba Cloud account of the destination instance. Takes effect when the source and destination instances belong to different Alibaba Cloud accounts. |
None. |
|
OracleSID |
String |
No |
No |
The name of the source Oracle instance. Takes effect when the source instance engine is Oracle. |
None. |
|
UserName |
String |
Yes |
No |
The username used to access the source database. |
None. |
|
OwnerID |
String |
No |
No |
The Alibaba Cloud account ID of the source ApsaraDB RDS instance owner. Takes effect when the source and destination instances belong to different Alibaba Cloud accounts. |
None. |
|
InstanceID |
String |
No |
No |
The ID of the source instance. |
None. |
|
IP |
String |
No |
No |
The IP address of the source instance. |
Required when the source instance is a self-managed database. |
|
Port |
String |
No |
No |
The port number of the source instance. |
Required when the source instance is a self-managed database. |
|
DatabaseName |
String |
No |
No |
The database name for connection. |
None. |
|
InstanceType |
String |
Yes |
No |
The type of the source instance. |
Valid values:
|
|
Password |
String |
Yes |
Yes |
The password used to log on to the source instance. |
None. |
Return values
Fn::GetAtt
-
SubscriptionInstanceId: the ID of the change tracking instance.
-
VPCHost: the VPC endpoint of the change tracking instance.
-
PublicHost: the public endpoint of the change tracking instance.
-
PrivateHost: the private endpoint of the change tracking instance.
-
SubscribeTopic: the topic of the change tracking instance.