All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DATAHUB::Project

Last Updated:Sep 02, 2024

ALIYUN::DATAHUB::Project is used to create a DataHub project.

Alibaba Cloud allows you to create DataHub projects in the following regions:

  • China (Hangzhou)

  • China (Shanghai)

  • China (Beijing)

  • China (Zhangjiakou)

  • China (Shenzhen)

  • Singapore (Singapore)

  • Malaysia (Kuala Lumpur)

  • Germany (Frankfurt)

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

Comment

String

Yes

No

The description of the project.

The description must be 3 to 1,024 characters in length.

ProjectName

String

Yes

No

The name of the project.

The name must be 3 to 32 characters in length and can contain digits, letters, and underscores (_). The name is case-sensitive and must start with a letter.

Return values

Fn::GetAtt

ProjectName: the name of the project.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Description: Test DataHub Project
Parameters:
  ProjectName:
    Type: String
    Default: mytest
Resources:
  Project:
    Type: ALIYUN::DATAHUB::Project
    Properties:
      Comment: Topic Project
      ProjectName:
        Ref: ProjectName
Outputs:
  Project:
    Value:
      Fn::GetAtt:
        - Project
        - ProjectName

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test DataHub Project",
  "Parameters": {
    "ProjectName": {
      "Type": "String",
      "Default": "mytest"
    }
  },
  "Resources": {
    "Project": {
      "Type": "ALIYUN::DATAHUB::Project",
      "Properties": {
        "Comment": "Topic Project",
        "ProjectName": {
          "Ref": "ProjectName"
        }
      }
    }
  },
  "Outputs": {
    "Project": {
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "ProjectName"
        ]
      }
    }
  }
}