ALIYUN::CloudStorageGateway::GatewayLogging

更新时间:
复制为 MD 格式

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"
        }
      }
    }
  }
}