ALIYUN::SLS::AnalyzeProductLog类型用于分析产品日志。
语法
{
"Type": "ALIYUN::SLS::AnalyzeProductLog",
"Properties": {
"CloudProduct": String,
"Logstore": String,
"Project": String,
"Overwrite": Boolean
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
CloudProduct | String | 是 | 否 | 云产品名称。 | 无 |
Logstore | String | 是 | 否 | Logstore 名称。 | 无 |
Project | String | 是 | 否 | Project名称。 | 无 |
Overwrite | Boolean | 否 | 否 | 是否覆盖现有的分析规则。 | 无 |
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Project:
Type: String
Description:
en: The project name.
Required: true
Logstore:
Type: String
Description:
en: The logstore name.
Required: true
CloudProduct:
Type: String
Description:
en: The cloud product name.
Required: true
Resources:
AnalyzeProductLog:
Type: ALIYUN::SLS::AnalyzeProductLog
Properties:
Project:
Ref: Project
Logstore:
Ref: Logstore
CloudProduct:
Ref: CloudProduct
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Project": {
"Type": "String",
"Description": {
"en": "The project name."
},
"Required": true
},
"Logstore": {
"Type": "String",
"Description": {
"en": "The logstore name."
},
"Required": true
},
"CloudProduct": {
"Type": "String",
"Description": {
"en": "The cloud product name."
},
"Required": true
}
},
"Resources": {
"AnalyzeProductLog": {
"Type": "ALIYUN::SLS::AnalyzeProductLog",
"Properties": {
"Project": {
"Ref": "Project"
},
"Logstore": {
"Ref": "Logstore"
},
"CloudProduct": {
"Ref": "CloudProduct"
}
}
}
}
}
该文章对您有帮助吗?