Adiciona logs de um serviço em nuvem a uma conta Alibaba Cloud.
Sintaxe
{
"Type": "ALIYUN::CloudSiem::UserSourceLogConfig",
"Properties": {
"SourceProdCode": String,
"SubUserId": String,
"SourceLogInfo": Map,
"SourceLogCode": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
SourceProdCode |
String |
Sim |
Não |
Código do serviço em nuvem. |
Chame a operação ListAllProds para consultar o código do serviço em nuvem. |
|
SubUserId |
String |
Sim |
Não |
ID da conta Alibaba Cloud cujos logs de serviço em nuvem serão adicionados. |
Nenhuma. |
|
SourceLogInfo |
Map |
Sim |
Não |
Configuração do Simple Log Service (SLS) para os logs. |
Para obter mais informações, consulte Propriedades de SourceLogInfo. |
|
SourceLogCode |
String |
Sim |
Não |
Código do log. |
Chame a operação ListImportedLogsByProd para consultar o código do log. |
Sintaxe de SourceLogInfo
"SourceLogInfo": {
"Project": String,
"RegionCode": String,
"LogStore": String
}
Propriedades de SourceLogInfo
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
LogStore |
String |
Sim |
Não |
Nome do Logstore. |
Nenhuma. |
|
Project |
String |
Sim |
Não |
Nome do projeto do Simple Log Service. |
Nenhuma. |
|
RegionCode |
String |
Sim |
Não |
Região dos logs. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
Nenhum.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SourceLogCode:
Description:
en: The source log code. For all available log codes of a product, query the
Cloud Siem ListImportedLogsByProd API with a specific product code.
Required: true
Type: String
SourceLogInfo:
AssociationPropertyMetadata:
Parameters:
LogStore:
Description:
en: The logstore name.
Required: true
Type: String
Project:
Description:
en: The log project name
Required: true
Type: String
RegionCode:
Description:
en: The region of the log
Required: true
Type: String
Description:
en: The info of log to be added.
Required: true
Type: Json
SourceProdCode:
Description:
en: The product code. For all available product codes, query the Cloud Siem
ListAllProds API.
Required: true
Type: String
SubUserId:
Description:
en: The Id of the account to be submitted.
Required: true
Type: String
Resources:
UserSourceLogConfig:
Properties:
SourceLogCode:
Ref: SourceLogCode
SourceLogInfo:
Ref: SourceLogInfo
SourceProdCode:
Ref: SourceProdCode
SubUserId:
Ref: SubUserId
Type: ALIYUN::CloudSiem::UserSourceLogConfig
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SourceProdCode": {
"Type": "String",
"Description": {
"en": "The product code. For all available product codes, query the Cloud Siem ListAllProds API."
},
"Required": true
},
"SubUserId": {
"Type": "String",
"Description": {
"en": "The Id of the account to be submitted."
},
"Required": true
},
"SourceLogInfo": {
"AssociationPropertyMetadata": {
"Parameters": {
"Project": {
"Type": "String",
"Description": {
"en": "The log project name"
},
"Required": true
},
"RegionCode": {
"Type": "String",
"Description": {
"en": "The region of the log"
},
"Required": true
},
"LogStore": {
"Type": "String",
"Description": {
"en": "The logstore name."
},
"Required": true
}
}
},
"Type": "Json",
"Description": {
"en": "The info of log to be added."
},
"Required": true
},
"SourceLogCode": {
"Type": "String",
"Description": {
"en": "The source log code. For all available log codes of a product, query the Cloud Siem ListImportedLogsByProd API with a specific product code."
},
"Required": true
}
},
"Resources": {
"UserSourceLogConfig": {
"Type": "ALIYUN::CloudSiem::UserSourceLogConfig",
"Properties": {
"SourceProdCode": {
"Ref": "SourceProdCode"
},
"SubUserId": {
"Ref": "SubUserId"
},
"SourceLogInfo": {
"Ref": "SourceLogInfo"
},
"SourceLogCode": {
"Ref": "SourceLogCode"
}
}
}
}
}