The ALIYUN::DTS::ConsumerGroup resource type creates a consumer group for a change tracking instance.
Syntax
{
"Type": "ALIYUN::DTS::ConsumerGroup",
"Properties": {
"ConsumerGroupPassword": String,
"ConsumerGroupUserName": String,
"ConsumerGroupName": String,
"SubscriptionInstanceId": String
}
}Properties
| Property name | Type | Required | Updatable | Description | Constraints |
| ConsumerGroupPassword | String | Yes | Yes | The password for the consumer group account. | The password must be 8 to 32 characters in length. It must contain at least two of the following character types: letters, digits, and special characters. |
| ConsumerGroupUserName | String | Yes | No | The account for the consumer group. | The account name can be up to 16 characters in length. It can contain letters, digits, and underscores (_). |
| ConsumerGroupName | String | Yes | No | The name of the consumer group. | The name can be up to 128 characters in length. Use a descriptive name for easy identification. |
| SubscriptionInstanceId | String | Yes | No | The ID of the change tracking instance. | None |
Return values
Fn::GetAtt
- ConsumerGroupID: The ID of the consumer group.
- ConsumerGroupName: The name of the consumer group.
- SubscriptionInstanceId: The ID of the change tracking instance.
Examples
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "SubscriptionInstanceId": { "Type": "String", "Description": "Subscription instance ID." } }, "Resources": { "ConsumerGroup": { "Type": "ALIYUN::DTS::ConsumerGroup", "Properties": { "ConsumerGroupPassword": "Admin@123", "ConsumerGroupUserName": "dtsconsum", "ConsumerGroupName": "dasdtest", "SubscriptionInstanceId": { "Ref": "SubscriptionInstanceId" } } } }, "Outputs": { "ConsumerGroupID": { "Description": "Consumer group ID", "Value": { "Fn::GetAtt": [ "ConsumerGroup", "ConsumerGroupID" ] } }, "ConsumerGroupName": { "Description": "Consumer group name", "Value": { "Fn::GetAtt": [ "ConsumerGroup", "ConsumerGroupName" ] } }, "SubscriptionInstanceId": { "Description": "Subscription instance ID", "Value": { "Fn::GetAtt": [ "ConsumerGroup", "SubscriptionInstanceId" ] } } } }