Creates an ApsaraMQ for RabbitMQ instance.
Syntax
{
"Type": "ALIYUN::AMQP::Instance",
"Properties": {
"MaxTps": Number,
"MaxEipTps": Number,
"SupportEip": String,
"Period": Number,
"StorageSize": Number,
"PayType": String,
"QueueCapacity": Number,
"TracingStorageTime": Number,
"InstanceName": String,
"OrderNum": Number,
"SupportTracing": String,
"InstanceType": String,
"PeriodUnit": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
InstanceType |
String |
No |
No |
The instance edition. |
Valid values:
|
|
MaxTps |
Number |
No |
Yes |
The peak TPS for accessing the instance over a VPC. |
Valid values:
|
|
QueueCapacity |
Number |
No |
Yes |
The maximum number of queues on the instance. |
Valid values: 50 to 6000. Note
The value must be a multiple of 50. If the specified value is not a multiple of 50, it is rounded up to the nearest multiple of 50. For example, if you set this property to 60, the value 100 is used. |
|
StorageSize |
Number |
No |
Yes |
The message storage size. |
Valid values:
Unit: GB. |
|
InstanceName |
String |
No |
Yes |
The instance name. |
None. |
|
MaxEipTps |
Number |
No |
Yes |
The peak TPS for accessing the instance over the Internet. |
Valid values: 128 to 45000. Note
The value must be a multiple of 128. If the specified value is not a multiple of 128, it is rounded up to the nearest multiple of 128. For example, if you set this property to 130, the value 256 is used. |
|
OrderNum |
Number |
No |
No |
The number of instances to create. |
Valid values: 1 to 9999.
|
|
PayType |
String |
No |
No |
The billing method. |
Set the value to Subscription. |
|
Period |
Number |
No |
No |
The unit of the subscription duration. |
Valid values:
Unit: month. |
|
PeriodUnit |
String |
No |
No |
The auto-renewal cycle. |
Valid values:
|
|
SupportEip |
String |
No |
Yes |
Specifies whether to enable Internet access for the instance. |
Valid values:
|
|
SupportTracing |
String |
No |
Yes |
Specifies whether to enable the message trace feature. |
Valid values:
|
|
TracingStorageTime |
Number |
No |
Yes |
The retention period of message traces. |
Valid values:
Unit: day. |
Return values
Fn::GetAtt
InstanceId: the instance ID.
PrivateEndpoint: the VPC endpoint.
ClassicEndpoint: the classic endpoint.
PublicEndpoint: the public endpoint.
Examples
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
MaxTps:
Type: Number
Description: |
If instance type is professional, the valid value is [1000, 1500, 2000, 2500, 3000, 4000, 5000].
If instance type is enterprise, the valid value is [3000, 5000, 8000, 10000, 15000, 20000, 3000040000, 50000, 80000, 10000].
If instance type is vip, the valid value is [8000, 15000, 25000, 40000, 50000, 100000, 200000, 300000, 500000, 800000, 1000000].
AllowedValues:
- 1000
- 1500
- 2000
- 2500
- 3000
- 4000
- 5000
- 8000
- 10000
- 15000
- 20000
- 25000
- 30000
- 40000
- 50000
- 100000
- 200000
- 300000
- 500000
- 800000
- 1000000
StorageSize:
Type: Number
Description: |-
The storage size. It is valid when instance_type is vip.
If instance type is professional or enterprise, the valid value is 200.
If instance type is vip, the valid value is [700, 2800] with the step size 100
MinValue: 200
MaxValue: 2800
QueueCapacity:
Type: Number
Description: |-
The queue capacity. If instance type is professional, the valid value is [50, 1000] with the step size 5.
If instance type is enterprise, the valid value is [200, 6000] with the step size 100
If instance type is vip, the valid value is [200, 80000] with the step size 100
MinValue: 50
MaxValue: 80000
InstanceType:
Type: String
Description: 'The Instance Type. Valid values: professional, enterprise, vip.'
AllowedValues:
- professional
- enterprise
- vip
Resources:
Instance:
Type: ALIYUN::AMQP::Instance
Properties:
MaxTps:
Ref: MaxTps
StorageSize:
Ref: StorageSize
QueueCapacity:
Ref: QueueCapacity
InstanceType:
Ref: InstanceType
Outputs:
InstanceId:
Description: The ID of the instance.
Value:
Fn::GetAtt:
- Instance
- InstanceId
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"MaxTps": {
"Type": "Number",
"Description": "If instance type is professional, the valid value is [1000, 1500, 2000, 2500, 3000, 4000, 5000].\nIf instance type is enterprise, the valid value is [3000, 5000, 8000, 10000, 15000, 20000, 3000040000, 50000, 80000, 10000].\nIf instance type is vip, the valid value is [8000, 15000, 25000, 40000, 50000, 100000, 200000, 300000, 500000, 800000, 1000000].\n",
"AllowedValues": [
1000,
1500,
2000,
2500,
3000,
4000,
5000,
8000,
10000,
15000,
20000,
25000,
30000,
40000,
50000,
100000,
200000,
300000,
500000,
800000,
1000000
]
},
"StorageSize": {
"Type": "Number",
"Description": "The storage size. It is valid when instance_type is vip.\nIf instance type is professional or enterprise, the valid value is 200.\nIf instance type is vip, the valid value is [700, 2800] with the step size 100",
"MinValue": 200,
"MaxValue": 2800
},
"QueueCapacity": {
"Type": "Number",
"Description": "The queue capacity. If instance type is professional, the valid value is [50, 1000] with the step size 5.\nIf instance type is enterprise, the valid value is [200, 6000] with the step size 100\nIf instance type is vip, the valid value is [200, 80000] with the step size 100",
"MinValue": 50,
"MaxValue": 80000
},
"InstanceType": {
"Type": "String",
"Description": "The Instance Type. Valid values: professional, enterprise, vip.",
"AllowedValues": [
"professional",
"enterprise",
"vip"
]
}
},
"Resources": {
"Instance": {
"Type": "ALIYUN::AMQP::Instance",
"Properties": {
"MaxTps": {
"Ref": "MaxTps"
},
"StorageSize": {
"Ref": "StorageSize"
},
"QueueCapacity": {
"Ref": "QueueCapacity"
},
"InstanceType": {
"Ref": "InstanceType"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "The ID of the instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
}
}
}