资源编排 ALIYUN::DATAHUB::Project

By | 2021年4月22日

ALIYUN::DATAHUB::Project类型用于创建数据总线项目。

阿里云支持在以下地域创建数据总线项目:

  • 中国(杭州)
  • 中国(上海)
  • 中国(北京)
  • 中国(张家口)
  • 中国(深圳)
  • 新加坡
  • 马来西亚(吉隆坡)
  • 德国(法兰克福)
  • 印度(孟买)

语法

{
  "Type": "ALIYUN::DATAHUB::Project",
  "Properties": {
    "Comment": String,
    "ProjectName": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Comment String 描述信息 长度为3~1024个字节。
ProjectName String 项目名称 长度为3~32个字符,以小写英文字母开头,可包含数字、英文字母(区分大小写)和下划线(_)。

返回值

Fn::GetAtt

ProjectName:项目名称。

示例

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Project": {
      "Type": "ALIYUN::DATAHUB::Project",
      "Properties": {
        "Comment": {
          "Ref": "Comment"
        },
        "ProjectName": {
          "Ref": "ProjectName"
        }
      }
    }
  },
  "Parameters": {
    "Comment": {
      "Type": "String",
      "Description": "The comment of project.",
      "MaxLength": 1024
    },
    "ProjectName": {
      "MinLength": 3,
      "Type": "String",
      "Description": "The name of the project. Length [3, 32]. Beginning with characters, only characters, numbers and _ are allowed.",
      "MaxLength": 32
    }
  },
  "Outputs": {
    "ProjectName": {
      "Description": "Project name",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "ProjectName"
        ]
      }
    }
  }
}

请关注公众号获取更多资料

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注