ALIYUN::MSE::Znode

更新时间:
复制为 MD 格式

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"
        }
      }
    }
  }
}