ALIYUN::DTS::SubscriptionJob2 is used to configure a change tracking task.
Syntax
{
"Type": "ALIYUN::DTS::SubscriptionJob2",
"Properties": {
"Status": String,
"Reserve": Map,
"DelayPhone": String,
"DedicatedClusterId": String,
"ErrorNotice": Boolean,
"DtsJobName": String,
"DelayRuleTime": Integer,
"DtsInstanceId": String,
"DbList": Map,
"DtsBisLabel": String,
"SubscriptionDataType": Map,
"Checkpoint": String,
"DelayNotice": Boolean,
"DtsJobId": String,
"SubscriptionInstance": Map,
"SourceEndpoint": Map,
"ErrorPhone": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Status | String | No | Yes | The status of the change tracking task. | Valid values:
|
Reserve | Map | No | No | The reserved property of Data Transmission Service (DTS). | You can use this property to add more configurations of the source or destination instance to DTS tasks. For example, you can specify the data storage format of a destination ApsaraMQ for Kafka database and the ID of a destination Cloud Enterprise Network (CEN) instance. |
DelayPhone | String | No | No | The mobile numbers to which latency-related alerts are sent. | Separate multiple mobile numbers with commas (,). Note
|
DedicatedClusterId | String | No | No | The ID of the DTS dedicated cluster. | You can schedule the change tracking task to the DTS dedicated cluster. |
ErrorNotice | Boolean | No | No | Specifies whether to monitor the task status. | Valid values:
|
DtsJobName | String | Yes | Yes | The name of the change tracking task. | We recommend that you specify a descriptive name for easy identification. You do not need to use a unique name. |
DelayRuleTime | Integer | No | No | The threshold for triggering latency-related alerts. | Unit: seconds. The value must be an integer. You can set the threshold based on your business requirements. To prevent jitters caused by network and database overloads, we recommend that you set the threshold to more than 10 seconds. Note You must specify this property when DelayNotice is set to true. |
DtsInstanceId | String | No | No | The ID of the change tracking instance. | None. |
DbList | Map | Yes | Yes | The objects whose changes you want to track. | The value is a JSON string. For more information, see Objects of DTS tasks. |
DtsBisLabel | String | No | No | The environment tag of the DTS instance. | Valid values:
|
SubscriptionDataType | Map | No | Yes | The type of the data for which you want to track changes. | For more information, see SubscriptionDataType properties. |
Checkpoint | String | No | No | The start offset of incremental data migration or incremental data synchronization. | This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Unit: seconds. |
DelayNotice | Boolean | No | No | Specifies whether to monitor the task latency. | Valid values:
|
DtsJobId | String | No | No | The ID of the change tracking task. | None. |
SubscriptionInstance | Map | Yes | No | The configurations of the change tracking instance. | For more information, see SubscriptionInstance properties. |
SourceEndpoint | Map | Yes | Yes | The configurations of the source instance. | For more information, see SourceEndpoint properties. |
ErrorPhone | String | No | No | The mobile numbers to which status-related alerts are sent. | Separate multiple mobile numbers with commas (,). Note
|
SubscriptionDataType syntax
"SubscriptionDataType": {
"DML": Boolean,
"DDL": Boolean
}
SubscriptionDataType properties
Property | Type | Required | Editable | Description | Constraint |
DML | Boolean | No | Yes | Specifies whether to track changes of data manipulation language (DML) statements. | Valid values:
|
DDL | Boolean | No | Yes | Specifies whether to track changes of data definition language (DDL) statements. | Valid values:
|
SubscriptionInstance syntax
"SubscriptionInstance": {
"VPCId": String,
"NetworkType": String,
"VSwitchId": String
}
SubscriptionInstance properties
Property | Type | Required | Editable | Description | Constraint |
VPCId | String | No | No | The virtual private cloud (VPC) ID of the change tracking instance. | You must specify this property only when NetworkType is set to VPC. |
NetworkType | String | Yes | No | The network type of the change tracking instance. | You can set the value of this property to VPC.
|
VSwitchId | String | No | No | The vSwitch ID of the change tracking instance. | You must specify this property only when NetworkType is set to VPC. |
SourceEndpoint syntax
"SourceEndpoint": {
"OracleSID": String,
"UserName": String,
"InstanceID": String,
"IP": String,
"Port": String,
"VSwitchID": String,
"DatabaseName": String,
"EngineName": String,
"Role": String,
"OwnerID": String,
"Region": String,
"InstanceType": String,
"Password": String
}
SourceEndpoint properties
Property | Type | Required | Editable | Description | Constraint |
OracleSID | String | No | No | The system ID (SID) of the Oracle database. | You must specify this property only when SourceEndpoint.EngineName is set to Oracle and the Oracle database is not deployed in the Real Application Clusters (RAC) architecture. |
UserName | String | No | No | The database account of the source database. | The permissions that are required for the database account vary based on migration scenarios. For more information, see Overview of data migration scenarios. |
InstanceID | String | No | No | The ID of the instance that hosts the source database. | Valid values:
|
IP | String | No | No | The IP address of the source database. | You must specify this property only when SourceEndpoint.InstanceType is set to LocalInstance or Express. |
Port | String | No | No | The service port of the source database. | You must specify this property only when SourceEndpoint.InstanceType is set to ECS, LocalInstance, or Express. |
VSwitchID | String | No | No | The ID of the vSwitch that you want to use for the data transmission link. | None. |
DatabaseName | String | No | No | The name of the source database or authentication database. |
|
EngineName | String | No | No | The engine type of the source database. | Valid values:
Note You must specify this property only when SourceEndpoint.InstanceType is set to RDS, PolarDB, ECS, LocalInstance, or Express. |
Role | String | No | No | The authorized Resource Access Management (RAM) role of the source instance. | You must specify this property when the source and destination instances belong to different Alibaba Cloud accounts. You can use the RAM role to authorize the Alibaba Cloud account that owns the destination instance to access the source instance. Note For more information about the permissions required by the RAM role and how to grant the permissions, see Configure RAM authorization for cross-account DTS tasks. |
OwnerID | String | No | No | The ID of the Alibaba Cloud account to which the source instance belongs. | You must specify this property only when you configure data migration across different Alibaba Cloud accounts. |
Region | String | No | No | The region ID of the source database. | If SourceEndpoint.InstanceType is set to LocalInstance, you can set SourceEndpoint.Region to cn-hangzhou or the ID of the region that is closest to the region of the self-managed database. For more information, see Supported regions. |
InstanceType | String | No | No | The type of the source instance. | Valid values:
|
Password | String | No | Yes | The password of the source database account. | None. |
Return values
Fn::GetAtt
DtsJobId: the ID of the change tracking task.
DtsJobName: the name of the change tracking task.
DtsInstanceId: the ID of the change tracking instance.