ALIYUN::IMM::Project2类型用于创建新版项目。
语法
{
  "Type": "ALIYUN::IMM::Project2",
  "Properties": {
    "ProjectName": String,
    "Description": String,
    "DatasetMaxBindCount": Integer,
    "DatasetMaxEntityCount": Integer,
    "DatasetMaxTotalFileSize": Integer,
    "DatasetMaxRelationCount": Integer,
    "DatasetMaxFileCount": Integer,
    "ProjectMaxDatasetCount": Integer,
    "ServiceRole": String,
    "TemplateId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| ProjectName | String | 是 | 否 | 项目名称。 | 命名规则如下: 
 | 
| Description | String | 否 | 是 | 项目描述信息。 | 长度为 1~256 个英文或中文字符,默认值为空。 | 
| DatasetMaxBindCount | Integer | 否 | 是 | 每个数据集绑定的最大个数。 | 取值范围为 1~10,默认值为 10。 | 
| DatasetMaxEntityCount | Integer | 否 | 是 | 每个数据集中元数据实体的最大个数, | 默认值为 10000000000。 | 
| DatasetMaxTotalFileSize | Integer | 否 | 是 | 每个数据集中文件总大小的最大值, | 超过限制后无法再添加索引。单位为字节,默认值为 90000000000000000。 | 
| DatasetMaxRelationCount | Integer | 否 | 是 | 每个数据集中元数据关系的最大个数。 | 默认值为 100000000000。 | 
| DatasetMaxFileCount | Integer | 否 | 是 | 每个数据集中文件的最大个数。 | 取值范围为 1~100000000,默认值为 1000000000。 | 
| ProjectMaxDatasetCount | Integer | 否 | 是 | 项目中数据集的最大个数。 | 取值范围为 1~1000000000,默认值为 1000000000。 | 
| ServiceRole | String | 否 | 是 | 服务角色。 | 授权给 IMM 服务以访问其他云资源(例如 OSS)的权限,默认值为 如果要自定义服务角色,您可以通过 RAM 控制台创建普通服务角色并为角色授权。具体操作,请参见为RAM用户配置权限。 | 
| TemplateId | String | 否 | 是 | 工作流模板 ID。 | 默认值为空。更多信息,请参见工作流模板与算子。 | 
返回值
Fn::GetAtt
ProjectName:项目名称。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ProjectName:
    Type: String
    Description:
      en: The name of project.
    Required: true
    Default: my-project
Resources:
  Project:
    Type: ALIYUN::IMM::Project2
    Properties:
      ProjectName:
        Ref: ProjectName
Outputs:
  ProjectName:
    Description: The name of project.
    Value:
      Fn::GetAtt:
        - Project
        - ProjectName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ProjectName": {
      "Type": "String",
      "Description": {
        "en": "The name of project."
      },
      "Required": true,
      "Default": "my-project"
    }
  },
  "Resources": {
    "Project": {
      "Type": "ALIYUN::IMM::Project2",
      "Properties": {
        "ProjectName": {
          "Ref": "ProjectName"
        }
      }
    }
  },
  "Outputs": {
    "ProjectName": {
      "Description": "The name of project.",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "ProjectName"
        ]
      }
    }
  }
}