All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::NLPAUTOML::Project

更新時間:Jul 06, 2023

ALIYUN::NLPAUTOML::Project is used to create a project.

Syntax

{
  "Type": "ALIYUN::NLPAUTOML::Project",
  "Properties": {
    "ProjectName": String,
    "ProjectType": String,
    "ProjectDescription": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

ProjectName

String

Yes

No

The name of the project.

The name can be up to 32 characters in length, and cannot start with a digit or punctuation mark.

ProjectType

String

Yes

No

The project type.

Valid values:

  • ner

  • textCategory

  • baseRelation

  • textMatching

  • sentimentAnalysis

  • resumeExtract

  • reviewAnalysis

ProjectDescription

String

Yes

No

The description of the project.

The description can be up to 256 characters in length, and cannot start with a digit or punctuation mark.

Return values

Fn::GetAtt

ProjectId: the project ID.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ProjectDescription:
    AllowedPattern: ^[a-zA-Z][-_a-zA-Z0-9]{1,256}$
    Description: The description of project. Cannot start with numbers and symbols,
      and the length cannot be greater than 256 characters.
    Type: String
  ProjectName:
    AllowedPattern: ^[a-zA-Z][-_a-zA-Z0-9]{1,32}$
    Description: The name of project. Cannot start with numbers and symbols, and the
      length cannot be greater than 32 characters.
    Type: String
  ProjectType:
    AllowedValues:
    - ner
    - textCategory
    - baseRelation
    - textMatching
    - sentimentAnalysis
    - resumeExtract
    - reviewAnalysis
    Description: 'The type of nlp project. The following value is allowed: ner, textCategorybaseRelation,
      textMatching, sentimentAnalysis, resumeExtract, reviewAnalysis'
    Type: String
Resources:
  Project:
    Properties:
      ProjectDescription:
        Ref: ProjectDescription
      ProjectName:
        Ref: ProjectName
      ProjectType:
        Ref: ProjectType
    Type: ALIYUN::NLPAUTOML::Project
Outputs:
  ProjectId:
    Description: The project ID
    Value:
      Fn::GetAtt:
      - Project
      - ProjectId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ProjectName": {
      "Type": "String",
      "Description": "The name of project. Cannot start with numbers and symbols, and the length cannot be greater than 32 characters.",
      "AllowedPattern": "^[a-zA-Z][-_a-zA-Z0-9]{1,32}$"
    },
    "ProjectType": {
      "Type": "String",
      "Description": "The type of nlp project. The following value is allowed: ner, textCategorybaseRelation, textMatching, sentimentAnalysis, resumeExtract, reviewAnalysis",
      "AllowedValues": [
        "ner",
        "textCategory",
        "baseRelation",
        "textMatching",
        "sentimentAnalysis",
        "resumeExtract",
        "reviewAnalysis"
      ]
    },
    "ProjectDescription": {
      "Type": "String",
      "Description": "The description of project. Cannot start with numbers and symbols, and the length cannot be greater than 256 characters.",
      "AllowedPattern": "^[a-zA-Z][-_a-zA-Z0-9]{1,256}$"
    }
  },
  "Resources": {
    "Project": {
      "Type": "ALIYUN::NLPAUTOML::Project",
      "Properties": {
        "ProjectName": {
          "Ref": "ProjectName"
        },
        "ProjectType": {
          "Ref": "ProjectType"
        },
        "ProjectDescription": {
          "Ref": "ProjectDescription"
        }
      }
    }
  },
  "Outputs": {
    "ProjectId": {
      "Description": "The project ID",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "ProjectId"
        ]
      }
    }
  }
}