ALIYUN::ROCKETMQ5::Instance is used to create a Message Queue for Apache RocketMQ V5.0 instance.
Syntax
{
"Type": "ALIYUN::ROCKETMQ5::Instance",
"Properties": {
"AutoRenewPeriod": Integer,
"ProductInfo": Map,
"ResourceGroupId": String,
"AutoRenew": Boolean,
"Period": Integer,
"InternetInfo": Map,
"SubSeriesCode": String,
"Remark": String,
"InstanceName": String,
"SeriesCode": String,
"PaymentType": String,
"VpcInfo": Map,
"PeriodUnit": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
AutoRenewPeriod | Integer | No | No | The auto-renewal cycle of the instance. | This property takes effect only when auto-renewal is enabled for the instance. Unit: months. Valid values: 1, 2, 3, 6, and 12.
|
ProductInfo | Map | Yes | Yes | The information about the instance specification. | For more information, see ProductInfo properties. |
ResourceGroupId | String | No | No | The ID of the resource group. | None. |
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal for the instance. | This property takes effect only when the PaymentType property is set to Subscription. Valid values:
|
Period | Integer | No | No | The subscription duration of the instance. | This property takes effect only when the PaymentType property is set to Subscription. Valid values:
|
InternetInfo | Map | Yes | Yes | The configurations of the Internet. | For more information, see InternetInfo properties. |
SubSeriesCode | String | Yes | No | The sub-category edition of the instance. | Valid values:
Note After you create a Message Queue for Apache RocketMQ V5.0 instance, you cannot change the sub-category edition of the instance. |
Remark | String | No | Yes | The remarks about the instance. | None. |
InstanceName | String | No | Yes | The name of the instance. | If you do not specify this property, the instance ID is used as the instance name. |
SeriesCode | String | Yes | No | The primary edition of the instance. | Valid values:
Note After you create a Message Queue for Apache RocketMQ V5.0 instance, you can only upgrade the primary edition of the instance. The following editions are sorted in ascending order: Standard Edition, Professional Edition, and Platinum Edition. You cannot downgrade the primary edition of the instance. For example, a Message Queue for Apache RocketMQ V5.0 instance can only be upgraded from Standard Edition to Professional Edition, but cannot be downgraded from Professional Edition to Standard Edition. |
PaymentType | String | No | No | The billing method of the instance. | Valid values:
|
VpcInfo | Map | Yes | No | The configurations of the virtual private cloud (VPC). | For more information, see VpcInfo properties. |
PeriodUnit | String | No | No | The minimum unit of the subscription duration. | Valid values:
|
ProductInfo syntax
"ProductInfo": {
"SendReceiveRatio": Number,
"MessageRetentionTime": Integer,
"AutoScaling": Boolean,
"MsgProcessSpec": String
}
ProductInfo properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
SendReceiveRatio | Number | No | Yes | The ratio of the number of messages that you can receive to the number of messages that you can send in the instance. | Valid values: 0.2 to 0.5. |
MessageRetentionTime | Integer | No | Yes | The retention period of the message. | Unit: hours. The storage of Message Queue for Apache RocketMQ V5.0 messages is in serverless scaling mode. You are charged based on the actual used storage. The storage capacity of messages varies based on the retention period that you specify for the messages. |
AutoScaling | Boolean | No | No | Specifies whether to enable burst scaling for the instance. | Valid values:
Note Only specific types of instances support burst scaling. |
MsgProcessSpec | String | Yes | No | The computing specification for messaging TPS. | None. |
InternetInfo syntax
"InternetInfo": {
"IpWhitelist": List,
"InternetSpec": String,
"FlowOutBandwidth": Integer
}
InternetInfo properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
IpWhitelist | List | No | Yes | The IP addresses in the whitelist that allows access to the instance over the Internet. | Only public endpoints support IP address whitelists. VPC endpoints do not support IP address whitelists.
|
InternetSpec | String | Yes | Yes | Specifies whether to enable Internet access. | Valid values:
|
FlowOutBandwidth | Integer | No | Yes | The metering method for Internet usage. | Valid values:
|
VpcInfo syntax
"VpcInfo": {
"VpcId": String,
"VSwitchId": String
}
VpcInfo properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
VpcId | String | Yes | No | The ID of the VPC in which you want to create the instance. | Note After you create a Message Queue for Apache RocketMQ V5.0 instance, you cannot change the VPC of the instance. If you want to change the VPC, you must release the instance and purchase a new instance. |
VSwitchId | String | Yes | No | The ID of the vSwitch with which you want to associate the instance. | Note After you create a Message Queue for Apache RocketMQ V5.0 instance, you cannot change the vSwitch of the instance. If you want to change the vSwitch, you must release the instance and purchase a new instance. |
Return values
Fn::GetAtt
- InstanceName: the name of the instance.
- VpcEndpoint: the VPC endpoint of the instance.
- InstanceId: the ID of the instance.
- InternetEndpoint: the public endpoint of the instance.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "VpcId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VPC::VPCId" }, "VSwitchId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId", "AssociationPropertyMetadata": { "VpcId": "${VpcId}" } } }, "Resources": { "Instance": { "Type": "ALIYUN::ROCKETMQ5::Instance", "Properties": { "ProductInfo": { "MsgProcessSpec": "rmq.s2.2xlarge", "SendReceiveRatio": 0.2, "MessageRetentionTime": 72 }, "InternetInfo": { "InternetSpec": "disable", "FlowOutBandwidth": "uninvolved" }, "SubSeriesCode": "cluster_ha", "SeriesCode": "standard", "PaymentType": "PayAsYouGo", "VpcInfo": { "VpcId": { "Ref": "VpcId" }, "VSwitchId": { "Ref": "VSwitchId" } } } } }, "Outputs": { "InstanceName": { "Description": "Instance name.", "Value": { "Fn::GetAtt": [ "Instance", "InstanceName" ] } }, "VpcEndpoint": { "Description": "VPC endpoint.", "Value": { "Fn::GetAtt": [ "Instance", "VpcEndpoint" ] } }, "InstanceId": { "Description": "Instance ID created.", "Value": { "Fn::GetAtt": [ "Instance", "InstanceId" ] } }, "InternetEndpoint": { "Description": "Internet endpoint.", "Value": { "Fn::GetAtt": [ "Instance", "InternetEndpoint" ] } } } }