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

Resource Orchestration Service:ALIYUN::CMS::EventRuleTargets

最終更新日:Jan 16, 2025

ALIYUN::CMS::EventRuleTargets は、イベントトリガーアラート ルールに基づいてアラート通知が送信される受信者を追加または変更するために使用されます。

構文

{
  "Type": "ALIYUN::CMS::EventRuleTargets",
  "Properties": {
    "FcParameters": List,
    "WebhookParameters": List,
    "MnsParameters": List,
    "ContactParameters": List,
    "RuleName": String,
    "SlsParameters": List
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

RuleName

String

はい

いいえ

イベントトリガーアラート ルールの名前。

なし

ContactParameters

List

いいえ

はい

連絡先のプロパティ。

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

FcParameters

List

いいえ

はい

Function Compute のプロパティ。

最大 5 つのプロパティを指定できます。

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

MnsParameters

List

いいえ

はい

Message Service (MNS) のプロパティ。

最大 5 つのプロパティを指定できます。

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

SlsParameters

List

いいえ

はい

Simple Log Service のプロパティ。

最大 5 つのプロパティを指定できます。

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

WebhookParameters

List

いいえ

はい

Webhook のプロパティ。

最大 5 つのプロパティを指定できます。

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

FcParameters 構文

"FcParameters": [
  {
    "Region": String,
    "ServiceName": String,
    "Id": String,
    "FunctionName": String
  }
]

FcParameters プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

FunctionName

String

いいえ

はい

関数の名前。

なし

Id

String

いいえ

はい

追加または変更するアラート連絡先の ID。

なし

Region

String

いいえ

はい

Function Compute のリージョン。

なし

ServiceName

String

いいえ

はい

Function Compute のサービス名。

なし

WebhookParameters 構文

"WebhookParameters": [
  {
    "Url": String,
    "Protocol": String,
    "Id": String,
    "Method": String
  }
]

WebhookParameters プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Id

String

いいえ

はい

追加または変更するアラート連絡先の ID。

なし

Method

String

いいえ

はい

HTTP コールバックの リクエストメソッド。

有効な値:

  • GET

  • POST

Protocol

String

いいえ

はい

プロトコルの名前。

なし

Url

String

いいえ

はい

コールバックの URL。

なし

MnsParameters 構文

"MnsParameters": [
  {
    "Queue": String,
    "Region": String,
    "Id": String
  }
]

MnsParameters プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Id

String

いいえ

はい

追加または変更するアラート連絡先の ID。

なし

Queue

String

いいえ

はい

キューの名前。

なし

Region

String

いいえ

はい

MNS のリージョン。

なし

ContactParameters 構文

"ContactParameters": [
  {
    "ContactGroupName": String,
    "Id": String,
    "Level": String
  }
]

ContactParameters プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

ContactGroupName

String

いいえ

はい

アラート連絡先グループの名前。

なし

Id

String

いいえ

はい

追加または変更するアラート連絡先の ID。

なし

Level

String

いいえ

はい

アラート通知のレベル。

有効な値:

  • 2

  • 3

  • 4

アラート通知は、DingTalk とメールを使用して送信されます。

SlsParameters 構文

"SlsParameters": [
  {
    "Project": String,
    "LogStore": String,
    "Region": String,
    "Id": String
  }
]

SlsParameters プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Id

String

いいえ

はい

追加または変更するアラート連絡先の ID。

なし

LogStore

String

いいえ

はい

Simple Log Service のログストア名。

なし

Project

String

いいえ

はい

Simple Log Service のプロジェクト名。

なし

Region

String

いいえ

はい

Simple Log Service のリージョン。

なし

戻り値

Fn::GetAtt

なし。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Description: CMS EventRuleTargets のテスト
Parameters:
  ContactGroupName:
    Type: String
    Description: 名前は 2 ~ 64 文字で、文字、数字、ピリオド (.)、アンダースコア (_)、ハイフン (-) を使用できます。名前は数字または文字で始める必要があります。
    Label: アラート連絡先
    ConstraintDescription: '[2, 128] 英語または中国語の文字'
    MinLength: 2
    MaxLength: 128
    Default: mytest
Resources:
  EventRuleTargets:
    Type: ALIYUN::CMS::EventRuleTargets
    Properties:
      ContactParameters:
        - ContactGroupName:
            Ref: ContactGroupName
          Id: '1'
          Level: '3'
      RuleName:
        Fn::Join:
          - _
          - - EventRule
            - Ref: ALIYUN::StackId
Outputs: {}

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "CMS EventRuleTargets のテスト",
  "Parameters": {
    "ContactGroupName": {
      "Type": "String",
      "Description": "名前は 2 ~ 64 文字で、文字、数字、ピリオド (.)、アンダースコア (_)、ハイフン (-) を使用できます。名前は数字または文字で始める必要があります。",
      "Label": "アラート連絡先",
      "ConstraintDescription": "[2, 128] 英語または中国語の文字",
      "MinLength": 2,
      "MaxLength": 128,
      "Default": "mytest"
    }
  },
  "Resources": {
    "EventRuleTargets": {
      "Type": "ALIYUN::CMS::EventRuleTargets",
      "Properties": {
        "ContactParameters": [
          {
            "ContactGroupName": {
              "Ref": "ContactGroupName"
            },
            "Id": "1",
            "Level": "3"
          }
        ],
        "RuleName": {
          "Fn::Join": [
            "_",
            [
              "EventRule",
              {
                "Ref": "ALIYUN::StackId"
              }
            ]
          ]
        }
      }
    }
  },
  "Outputs": {
  }
}