ALIYUN::ROCKETMQ::Instance類型用于創建標準版實例。
語法
{
"Type": "ALIYUN::ROCKETMQ::Instance",
"Properties": {
"Remark": String,
"InstanceName": String,
"Tags": List,
"DeletionForce": Boolean
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Remark | String | 否 | 是 | 備注。 | 最大長度為128個字符。 |
InstanceName | String | 是 | 是 | 實例名稱。 | 長度為3~64個字符,可包含英文字母、漢字、數字、短劃線(-)和下劃線(_)。 |
Tags | List | 否 | 是 | 標簽。 | 最多支持添加20個標簽。 更多信息,請參見Tags屬性。 |
DeletionForce | Boolean | 否 | 是 | 是否強制刪除。 | 無 |
Tags語法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Key | String | 是 | 否 | 標簽鍵。 | 長度為1~128個字符,不能以 |
Value | String | 否 | 否 | 標簽值。 | 長度為0~128個字符,不能以 |
返回值
Fn::GetAtt
InstanceId:實例ID。
InstanceType:實例類型,1表示標準版。
HttpInternetEndpoint:HTTP公網接入點。
HttpInternetSecureEndpoint:HTTPS公網接入點。
TcpEndpoint:TCP協議接入點。
HttpInternalEndpoint:HTTP內網接入點。
InstanceName:實例名稱。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
Instance:
Type: ALIYUN::ROCKETMQ::Instance
Properties:
InstanceName: TestRocketMQ
Outputs:
InstanceName:
Description: Instance name
Value:
Fn::GetAtt:
- Instance
- InstanceName
HttpInternalEndpoint:
Description: The internal HTTP endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- HttpInternalEndpoint
InstanceId:
Description: Instance ID created
Value:
Fn::GetAtt:
- Instance
- InstanceId
TcpEndpoint:
Description: The TCP endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- TcpEndpoint
HttpInternetEndpoint:
Description: The Internet HTTP endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- HttpInternetEndpoint
InstanceType:
Description: Instance Type
Value:
Fn::GetAtt:
- Instance
- InstanceType
HttpInternetSecureEndpoint:
Description: The Internet HTTPS endpoint for the Message Queue for Apache RocketMQ instance.
Value:
Fn::GetAtt:
- Instance
- HttpInternetSecureEndpoint
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"Instance": {
"Type": "ALIYUN::ROCKETMQ::Instance",
"Properties": {
"InstanceName": "TestRocketMQ"
}
}
},
"Outputs": {
"InstanceName": {
"Description": "Instance name",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceName"
]
}
},
"HttpInternalEndpoint": {
"Description": "The internal HTTP endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"HttpInternalEndpoint"
]
}
},
"InstanceId": {
"Description": "Instance ID created",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"TcpEndpoint": {
"Description": "The TCP endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"TcpEndpoint"
]
}
},
"HttpInternetEndpoint": {
"Description": "The Internet HTTP endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"HttpInternetEndpoint"
]
}
},
"InstanceType": {
"Description": "Instance Type",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceType"
]
}
},
"HttpInternetSecureEndpoint": {
"Description": "The Internet HTTPS endpoint for the Message Queue for Apache RocketMQ instance.",
"Value": {
"Fn::GetAtt": [
"Instance",
"HttpInternetSecureEndpoint"
]
}
}
}
}
文檔內容是否對您有幫助?