ALIYUN::MSE::Znode类型用于创建Zookeeper数据节点。
语法
{
"Type": "ALIYUN::MSE::Znode",
"Properties": {
"ClusterId": String,
"Path": String,
"Data": String,
"InstanceId": String,
"Type": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
ClusterId |
String |
是 |
否 |
集群 ID。 |
无 |
|
Path |
String |
是 |
否 |
节点路径。 |
无 |
|
Data |
String |
否 |
否 |
节点数据。 |
无 |
|
InstanceId |
String |
否 |
否 |
实例 ID。 |
无 |
|
Type |
String |
否 |
否 |
节点类型。 |
无 |
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Path:
Type: String
Description:
en: The path of the znode.
Required: true
ClusterId:
Type: String
Description:
en: The ID of the cluster.
Required: true
Resources:
Znode:
Type: ALIYUN::MSE::Znode
Properties:
Path:
Ref: Path
ClusterId:
Ref: ClusterId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Path": {
"Type": "String",
"Description": {
"en": "The path of the znode."
},
"Required": true
},
"ClusterId": {
"Type": "String",
"Description": {
"en": "The ID of the cluster."
},
"Required": true
}
},
"Resources": {
"Znode": {
"Type": "ALIYUN::MSE::Znode",
"Properties": {
"Path": {
"Ref": "Path"
},
"ClusterId": {
"Ref": "ClusterId"
}
}
}
}
}
该文章对您有帮助吗?