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"
}
}
}
}
}
该文章对您有帮助吗?