ALIYUN::ROCKETMQ5::ConsumerGroup is used to create a consumer group that belongs to a Message Queue for Apache RocketMQ V5.0 instance.
Syntax
{
"Type": "ALIYUN::ROCKETMQ5::ConsumerGroup",
"Properties": {
"ConsumerGroupId": String,
"InstanceId": String,
"ConsumeRetryPolicy": Map,
"DeliveryOrderType": String,
"Remark": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
ConsumerGroupId | String | Yes | No | The ID of the consumer group. | The ID is globally unique and is used to identify a consumer group. The following limits are imposed on the ID:
|
InstanceId | String | Yes | No | The ID of the instance to which the consumer group belongs. | None. |
ConsumeRetryPolicy | Map | Yes | Yes | The consumption retry policy that you want to configure for the consumer group. | None. |
DeliveryOrderType | String | Yes | Yes | The delivery order type of the consumer group. | Valid values:
|
Remark | String | No | Yes | The remarks of the consumer group. | None. |
ConsumeRetryPolicy syntax
"ConsumeRetryPolicy": {
"RetryPolicy": String,
"MaxRetryTimes": Integer
}
ConsumeRetryPolicy properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
RetryPolicy | String | Yes | Yes | The type of the retry policy. | Valid values:
|
MaxRetryTimes | Integer | No | Yes | The maximum number of retries. | None. |
Return values
Fn::GetAtt
- ConsumerGroupId: the ID of the consumer group.
- InstanceId: the ID of the instance to which the consumer group belongs.
- DeliveryOrderType: the delivery order type of the consumer group.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "ConsumerGroupId": { "Type": "String", "Description": "The ID of the consumer group to be created. Used to identify consumer groups, globally unique.\nThe value description is as follows:\nCharacter limitation: supports letters a~z or A-Z, numbers 0-9, underscore (_), dash (-) and percent sign (%).\nLength limit: 1-60 characters.", "MinLength": 1, "MaxLength": 60 }, "InstanceId": { "Type": "String", "Description": "The ID of the instance." } }, "Resources": { "ConsumerGroup": { "Type": "ALIYUN::ROCKETMQ5::ConsumerGroup", "Properties": { "ConsumerGroupId": { "Ref": "ConsumerGroupId" }, "InstanceId": { "Ref": "InstanceId" }, "ConsumeRetryPolicy": { "RetryPolicy": "DefaultRetryPolicy", "MaxRetryTimes": 5 }, "DeliveryOrderType": "Concurrently" } } }, "Outputs": { "ConsumerGroupId": { "Description": "The ID of the consumer group.", "Value": { "Fn::GetAtt": [ "ConsumerGroup", "ConsumerGroupId" ] } }, "InstanceId": { "Description": "The ID of the instance.", "Value": { "Fn::GetAtt": [ "ConsumerGroup", "InstanceId" ] } }, "DeliveryOrderType": { "Description": "Delivery sequence of consumer group.", "Value": { "Fn::GetAtt": [ "ConsumerGroup", "DeliveryOrderType" ] } } } }