ALIYUN::CloudStorageGateway::GatewayLogging类型用于创建网关日志监控。
语法
{
"Type": "ALIYUN::CloudStorageGateway::GatewayLogging",
"Properties": {
"GatewayId": String,
"SlsProject": String,
"SlsLogstore": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
GatewayId |
String |
是 |
否 |
网关的ID。 |
无 |
|
SlsLogstore |
String |
是 |
否 |
SLS日志库的名称。 |
无 |
|
SlsProject |
String |
是 |
否 |
SLS项目的名称。 |
无 |
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SlsProject:
Type: String
Description:
en: The name of the SLS project.
zh: SLS项目的名称。
Required: true
GatewayId:
Type: String
Description:
en: The ID of the gateway.
zh: 网关的ID。
Required: true
SlsLogstore:
Type: String
Description:
en: The name of the SLS log store.
zh: SLS日志库的名称。
Required: true
Resources:
GatewayLogging:
Type: ALIYUN::CloudStorageGateway::GatewayLogging
Properties:
SlsProject:
Ref: SlsProject
GatewayId:
Ref: GatewayId
SlsLogstore:
Ref: SlsLogstore
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SlsProject": {
"Type": "String",
"Description": {
"en": "The name of the SLS project.",
"zh": "SLS项目的名称。"
},
"Required": true
},
"GatewayId": {
"Type": "String",
"Description": {
"en": "The ID of the gateway.",
"zh": "网关的ID。"
},
"Required": true
},
"SlsLogstore": {
"Type": "String",
"Description": {
"en": "The name of the SLS log store.",
"zh": "SLS日志库的名称。"
},
"Required": true
}
},
"Resources": {
"GatewayLogging": {
"Type": "ALIYUN::CloudStorageGateway::GatewayLogging",
"Properties": {
"SlsProject": {
"Ref": "SlsProject"
},
"GatewayId": {
"Ref": "GatewayId"
},
"SlsLogstore": {
"Ref": "SlsLogstore"
}
}
}
}
}
该文章对您有帮助吗?