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

Syntax

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

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, and can contain lowercase letters, digits, and hyphens (-). The name must start and end with a lowercase letter or digit.
Description String No No The description of the project. The description can be up to 64 characters in length, and cannot contain the following special characters: <> ' \ "
Tags List No Yes The tags of the project. You can specify up to 20 tags.

For more information, see Tags syntax and Tags properties.

Tags syntax

"Tags": [
  {
    "Key": String,
    "Value": String
  }
]  

Tags properties

Property Type Required Editable Description Constraint
Key String Yes No The key of the tag. The key must be 1 to 128 characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:.
Value String No No The value of the tag. The value must be 0 to 128 characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:.

Response parameters

Fn::GetAtt

Name: the name of the Log Service project.

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      Project:
        Type: ALIYUN::SLS::Project
        Properties:
          Name: TestProject
    Outputs:
      Name:
        Description: Project name.
        Value:
          Fn::GetAtt:
            - Project
            - Name
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "Project": {
          "Type": "ALIYUN::SLS::Project",
          "Properties": {
            "Name": "TestProject"
          }
        }
      },
      "Outputs": {
        "Name": {
          "Description": "Project name.",
          "Value": {
            "Fn::GetAtt": [
              "Project",
              "Name"
            ]
          }
        }
      }
    }

For more information about examples, visit SLS.json and SLS.yml. You can specify the following resource types that are involved in the examples to use relevant features:

  • ALIYUN::SLS::Project
  • ALIYUN::SLS::Logstore
  • ALIYUN::SLS::Index
  • ALIYUN::SLS::LogtailConfig
  • ALIYUN::SLS::MachineGroup
  • ALIYUN::SLS::ApplyConfigToMachineGroup
  • ALIYUN::ApiGateway::LogConfig
  • ALIYUN::SLS::Savedsearch
  • ALIYUN::SLS::Alert