ALIYUN::AMQP::VirtualHost類型用於建立Vhost。
文法
{
"Type": "ALIYUN::AMQP::VirtualHost",
"Properties": {
"InstanceId": String,
"VirtualHost": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
InstanceId | String | 是 | 否 | 執行個體ID。 | 無 |
VirtualHost | String | 是 | 否 | Vhost名稱。 | 說明:
|
傳回值
Fn::GetAtt
VirtualHost:Vhost名稱。
樣本
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Description: InstanceId
Type: String
VirtualHost:
Description: The name of the virtual host.
MaxLength: 100
Type: String
Resources:
AMQPVirtualHost:
Properties:
InstanceId:
Ref: InstanceId
VirtualHost:
Ref: VirtualHost
Type: ALIYUN::AMQP::VirtualHost
Outputs:
VirtualHost:
Description: The name of the virtual host.
Value:
Fn::GetAtt:
- AMQPVirtualHost
- VirtualHost
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": "InstanceId"
},
"VirtualHost": {
"Type": "String",
"Description": "The name of the virtual host.",
"MaxLength": 100
}
},
"Resources": {
"AMQPVirtualHost": {
"Type": "ALIYUN::AMQP::VirtualHost",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"VirtualHost": {
"Ref": "VirtualHost"
}
}
}
},
"Outputs": {
"VirtualHost": {
"Description": "The name of the virtual host.",
"Value": {
"Fn::GetAtt": [
"AMQPVirtualHost",
"VirtualHost"
]
}
}
}
}