All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ACTIONTRAIL::TrailLogging

Last Updated:Jul 29, 2024

ALIYUN::ACTIONTRAIL::TrailLogging is used to enable or disable trail logging.

Syntax

{
  "Type": "ALIYUN::ACTIONTRAIL::TrailLogging",
  "Properties": {
    "Name": String,
    "Enable": Boolean
  }
}   

Properties

Property

Type

Required

Editable

Description

Constraint

Enable

Boolean

Yes

Yes

Specifies whether to enable trail logging.

None.

Name

String

Yes

No

The trail name.

None.

Return values

Fn::GetAtt

  • IsLogging: indicates whether the trail logging service is enabled.

  • LatestDeliveryError: the most recent error that the trail encountered when attempting to deliver log files.

  • LatestDeliveryTime: the date and time of the most recent successful delivery of a log file.

  • StartLoggingTime: the date and time of the most recent trail enabled by the user.

  • StopLoggingTime: the date and time of the most recent trail disabled by the user.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  TrailLogging:
    Type: ALIYUN::ACTIONTRAIL::TrailLogging
    Properties:
      Name: test-trail
      Enable: true

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "TrailLogging": {
      "Type": "ALIYUN::ACTIONTRAIL::TrailLogging",
      "Properties": {
        "Name": "test-trail",
        "Enable": true
      }
    }
  }
}