ALIYUN::GA::LogStoreToEndpointGroupAttachment

ALIYUN::GA::LogStoreToEndpointGroupAttachment类型用于关联SLS日志库到终端节点组。

语法

{
  "Type": "ALIYUN::GA::LogStoreToEndpointGroupAttachment",
  "Properties": {
    "AcceleratorId": String,
    "EndpointGroupIds": List,
    "ListenerId": String,
    "SlsProjectName": String,
    "SlsRegionId": String,
    "SlsLogStoreName": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AcceleratorId

String

全球加速实例 ID。

EndpointGroupIds

List

终端节点组 ID 列表。

最多支持配置10组终端节点组 ID 。

ListenerId

String

监听实例 ID。

SlsProjectName

String

SLS 项目名称。

SlsRegionId

String

SLS 地域 ID。

SlsLogStoreName

String

SLS 日志库名称。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SlsProjectName:
    Type: String
    Description:
      en: SLS project name.
    Required: true
  EndpointGroupIds:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: Endpoint Group ID List.
    Required: true
    MinLength: 1
    MaxLength: 10
  SlsRegionId:
    Type: String
    Description:
      en: SLS Region ID.
    Required: true
  AcceleratorId:
    Type: String
    Description:
      en: Global Acceleration Instance ID.
    Required: true
  SlsLogStoreName:
    Type: String
    Description:
      en: SLS log library name.
    Required: true
  ListenerId:
    Type: String
    Description:
      en: Listener ID.
    Required: true
Resources:
  LogStoreToEndpointGroupAttachment:
    Type: ALIYUN::GA::LogStoreToEndpointGroupAttachment
    Properties:
      SlsProjectName:
        Ref: SlsProjectName
      EndpointGroupIds:
        Ref: EndpointGroupIds
      SlsRegionId:
        Ref: SlsRegionId
      AcceleratorId:
        Ref: AcceleratorId
      SlsLogStoreName:
        Ref: SlsLogStoreName
      ListenerId:
        Ref: ListenerId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "SlsProjectName": {
      "Type": "String",
      "Description": {
        "en": "SLS project name."
      },
      "Required": true
    },
    "EndpointGroupIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "Endpoint Group ID List."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 10
    },
    "SlsRegionId": {
      "Type": "String",
      "Description": {
        "en": "SLS Region ID."
      },
      "Required": true
    },
    "AcceleratorId": {
      "Type": "String",
      "Description": {
        "en": "Global Acceleration Instance ID."
      },
      "Required": true
    },
    "SlsLogStoreName": {
      "Type": "String",
      "Description": {
        "en": "SLS log library name."
      },
      "Required": true
    },
    "ListenerId": {
      "Type": "String",
      "Description": {
        "en": "Listener ID."
      },
      "Required": true
    }
  },
  "Resources": {
    "LogStoreToEndpointGroupAttachment": {
      "Type": "ALIYUN::GA::LogStoreToEndpointGroupAttachment",
      "Properties": {
        "SlsProjectName": {
          "Ref": "SlsProjectName"
        },
        "EndpointGroupIds": {
          "Ref": "EndpointGroupIds"
        },
        "SlsRegionId": {
          "Ref": "SlsRegionId"
        },
        "AcceleratorId": {
          "Ref": "AcceleratorId"
        },
        "SlsLogStoreName": {
          "Ref": "SlsLogStoreName"
        },
        "ListenerId": {
          "Ref": "ListenerId"
        }
      }
    }
  }
}