ALIYUN::SLS::ApplyConfigToMachineGroup

更新时间:
复制 MD 格式

Applies a Simple Log Service (SLS) log configuration to a machine group.

Syntax

{
  "Type": "ALIYUN::SLS::ApplyConfigToMachineGroup",
  "Properties": {
    "ProjectName": String,
    "ConfigName": String,
    "GroupName": String
  }
}

Properties

Property name Type Required Update allowed Description Constraints
ProjectName String No No Log project name. Up to 128 characters. Can contain letters, Chinese characters, digits, underscores (_), periods (.), and hyphens (-).
ConfigName String No No Log configuration name. Up to 128 characters. Can contain letters, Chinese characters, digits, underscores (_), periods (.), and hyphens (-).
GroupName String No No Machine group name. Up to 128 characters. Can contain letters, Chinese characters, digits, underscores (_), periods (.), and hyphens (-).

Return values

Fn::GetAtt

None

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      ApplyConfigToMachineGroup:
        Type: ALIYUN::SLS::ApplyConfigToMachineGroup
        Properties:
          ProjectName: rostest-beijing
          ConfigName: rostest-conf
          GroupName: machine-group-test1
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "ApplyConfigToMachineGroup": {
          "Type": "ALIYUN::SLS::ApplyConfigToMachineGroup",
          "Properties": {
            "ProjectName": "rostest-beijing",
            "ConfigName": "rostest-conf",
            "GroupName": "machine-group-test1"
          }
        }
      }
    }