すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::CMS::SlsGroup

最終更新日:Mar 17, 2025

ALIYUN::CMS::SlsGroup は、Simple Log Service ログのメトリックのログストアグループを作成するために使用されます。

構文

{
  "Type": "ALIYUN::CMS::SlsGroup",
  "Properties": {
    "SlsGroupDescription": String,
    "SlsGroupConfig": List,
    "SlsGroupName": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

SlsGroupConfig

List

はい

いいえ

ログストアグループの構成。

最大 25 個の構成を追加できます。

詳細については、「SlsGroupConfig プロパティ」をご参照ください。

SlsGroupName

String

はい

いいえ

ログストアグループの名前。

なし。

SlsGroupDescription

String

いいえ

はい

ログストアグループの説明。

なし。

SlsGroupConfig 構文

"SlsGroupConfig": [
  {
    "SlsProject": String,
    "SlsRegion": String,
    "SlsUserId": String,
    "SlsLogstore": String
  }
]

SlsGroupConfig プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

SlsLogstore

String

はい

いいえ

ログストア。

なし。

SlsProject

String

はい

いいえ

ログ プロジェクト。

なし。

SlsRegion

String

はい

いいえ

リージョン。

なし。

SlsUserId

String

いいえ

はい

メンバー ID。

リソースディレクトリの管理アカウントで ALIYUN::CMS::SlsGroup を使用する場合、リソースディレクトリのメンバーに対して有効になっている Alibaba Cloud サービスをハイブリッドクラウド監視に接続できます。 リソースディレクトリを使用して、企業アカウント全体の Alibaba Cloud サービスを監視できます。

戻り値

Fn::GetAtt

  • SlsGroupDescription: ログストアグループの説明。

  • SlsGroupConfig: ログストアグループの構成。

  • CreateTime: ログストアグループが作成された日時。

  • SlsGroupName: ログストアグループの名前。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SlsGroupConfig:
    AssociationPropertyMetadata:
      Parameters:
        SlsProject:
          Type: String
          Description:
            en: The Simple Log Service project.
          Required: true
        SlsRegion:
          Type: String
          Description:
            en: The region ID.
          Required: true
        SlsUserId:
          Type: String
          Description:
            en: The member ID. If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts.Note If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see Manage the service-linked role for CloudMonitor.
          Required: false
        SlsLogstore:
          Type: String
          Description:
            en: The Logstore.
          Required: true
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      en: 'The configurations of the Logstore group.Valid values of N: 1 to 25.'
    Required: true
  SlsGroupName:
    Type: String
    Description:
      en: The name of the Logstore group.The name must be 2 to 32 characters in length and can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with a letter.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::CMS::SlsGroup
    Properties:
      SlsGroupConfig:
        Ref: SlsGroupConfig
      SlsGroupName:
        Ref: SlsGroupName
Outputs:
  SlsGroupDescription:
    Description: The description of the Logstore group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SlsGroupDescription
  SlsGroupConfig:
    Description: The configurations of the Logstore group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SlsGroupConfig
  CreateTime:
    Description: The creation time of the Logstore group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  SlsGroupName:
    Description: The name of the Logstore group.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SlsGroupName

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SlsGroupConfig": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "SlsProject": {
            "Type": "String",
            "Description": {
              "en": "The Simple Log Service project."
            },
            "Required": true
          },
          "SlsRegion": {
            "Type": "String",
            "Description": {
              "en": "The region ID."
            },
            "Required": true
          },
          "SlsUserId": {
            "Type": "String",
            "Description": {
              "en": "The member ID. If you call this operation by using the management account of a resource directory, you can connect the Alibaba Cloud services that are activated for all members in the resource directory to Hybrid Cloud Monitoring. You can use the resource directory to monitor Alibaba Cloud services across enterprise accounts.Note If a member uses CloudMonitor for the first time, you must make sure that the service-linked role AliyunServiceRoleForCloudMonitor is attached to the member. For more information, see Manage the service-linked role for CloudMonitor."
            },
            "Required": false
          },
          "SlsLogstore": {
            "Type": "String",
            "Description": {
              "en": "The Logstore."
            },
            "Required": true
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "The configurations of the Logstore group.Valid values of N: 1 to 25."
      },
      "Required": true
    },
    "SlsGroupName": {
      "Type": "String",
      "Description": {
        "en": "The name of the Logstore group.The name must be 2 to 32 characters in length and can contain uppercase letters, lowercase letters, digits, and underscores (_). The name must start with a letter."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CMS::SlsGroup",
      "Properties": {
        "SlsGroupConfig": {
          "Ref": "SlsGroupConfig"
        },
        "SlsGroupName": {
          "Ref": "SlsGroupName"
        }
      }
    }
  },
  "Outputs": {
    "SlsGroupDescription": {
      "Description": "ログストアグループの説明。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SlsGroupDescription"
        ]
      }
    },
    "SlsGroupConfig": {
      "Description": "ログストアグループの構成。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SlsGroupConfig"
        ]
      }
    },
    "CreateTime": {
      "Description": "ログストアグループの作成時間。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "SlsGroupName": {
      "Description": "ログストアグループの名前。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SlsGroupName"
        ]
      }
    }
  }
}