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

Syntax

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

Properties

NameTypeRequiredEditableDescriptionValidity
NameStringYesNoThe name of the trail to be enabled.None
EnableBooleanYesYesSpecifies whether to enable trail logging.None

Response parameters

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

  • YAMLformat

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

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