ALIYUN::CloudStorageGateway::GatewayLogging

更新时间:
复制 MD 格式

Use the ALIYUN::CloudStorageGateway::GatewayLogging resource to configure gateway log monitoring.

Syntax

{
  "Type": "ALIYUN::CloudStorageGateway::GatewayLogging",
  "Properties": {
    "GatewayId": String,
    "SlsProject": String,
    "SlsLogstore": String
  }
}

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

GatewayId

String

Yes

No

The ID of the gateway.

None

SlsLogstore

String

Yes

No

The name of the SLS log store.

None

SlsProject

String

Yes

No

The name of the SLS project.

None

Return values

Fn::GetAtt

None

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  SlsProject:
    Type: String
    Description: The name of the SLS project.
    Required: true
  GatewayId:
    Type: String
    Description: The ID of the gateway.
    Required: true
  SlsLogstore:
    Type: String
    Description: The name of the SLS log store.
    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": "The name of the SLS project.",
      "Required": true
    },
    "GatewayId": {
      "Type": "String",
      "Description": "The ID of the gateway.",
      "Required": true
    },
    "SlsLogstore": {
      "Type": "String",
      "Description": "The name of the SLS log store.",
      "Required": true
    }
  },
  "Resources": {
    "GatewayLogging": {
      "Type": "ALIYUN::CloudStorageGateway::GatewayLogging",
      "Properties": {
        "SlsProject": {
          "Ref": "SlsProject"
        },
        "GatewayId": {
          "Ref": "GatewayId"
        },
        "SlsLogstore": {
          "Ref": "SlsLogstore"
        }
      }
    }
  }
}