ALIYUN::SLS::Project is used to create a Log Service project.

Syntax

{
  "Type": "ALIYUN::SLS::Project",
  "Properties": {
    "Name": String,
    "Description": String
  }
}

Properties

Property Type Required Editable Description Constraint
Name String Yes No The name of the project.
  • The name must be 3 to 36 characters in length.
  • It can contain lowercase letters, digits, hyphens (-), and underscores (_).
  • It must start and end with a lowercase letter or digit.
Description String No No The description of the project.
  • The description must be 0 to 64 characters in length.
  • It cannot contain the following characters: < > ' " \

Response parameters

Fn::GetAtt

Name: the name of the project.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Project": {
      "Type": "ALIYUN::SLS::Project",
      "Properties": {
        "Name": {
          "Ref": "Name"
        },
        "Description": {
          "Ref": "Description"
        }
      }
    }
  },
  "Parameters": {
    "Name": {
      "MinLength": 3,
      "Type": "String",
      "Description": "Project name: 1. Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.",
      "MaxLength": 63
    },
    "Description": {
      "Type": "String",
      "Description": "Project description: <>'\"\\ is not supported, up to 64 characters.",
      "MaxLength": 64
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  Project:
    Type: ALIYUN::SLS::Project
    Properties:
      Name:
        Ref: Name
      Description:
        Ref: Description
Parameters:
  Name:
    MinLength: 3
    Type: String
    Description: Project name: 1. Only supports lowercase letters, numbers, hyphens
      (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3.
      The name length is 3-63 characters.
    MaxLength: 63
  Description:
    Type: String
    Description: 'Project description: <>''"\ is not supported, up to 64 characters.'
    MaxLength: 64