Associa um Logstore do Simple Log Service (SLS) a grupos de endpoints.
Sintaxe
{
"Type": "ALIYUN::GA::LogStoreToEndpointGroupAttachment",
"Properties": {
"AcceleratorId": String,
"EndpointGroupIds": List,
"ListenerId": String,
"SlsProjectName": String,
"SlsRegionId": String,
"SlsLogStoreName": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
AcceleratorId |
String |
Sim |
Não |
ID da instância do Global Accelerator (GA). |
Nenhuma. |
|
EndpointGroupIds |
List |
Sim |
Não |
IDs dos grupos de endpoints. |
Especifique até 10 IDs de grupos de endpoints. |
|
ListenerId |
String |
Sim |
Não |
ID do listener. |
Nenhuma. |
|
SlsProjectName |
String |
Sim |
Não |
Nome do projeto SLS. |
Nenhuma. |
|
SlsRegionId |
String |
Sim |
Não |
ID da região do projeto SLS. |
Nenhuma. |
|
SlsLogStoreName |
String |
Sim |
Não |
Nome do Logstore SLS. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
Nenhum.
Exemplos
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"
}
}
}
}
}