Skip to content

TrailProps

Properties for defining a Trail.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-actiontrail-trail

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkactiontrail"
&alicloudroscdkactiontrail.TrailProps {
    Name: interface{},
    EventRw: interface{},
    OssBucketName: interface{},
    OssKeyPrefix: interface{},
    RoleName: interface{},
    SlsProjectArn: interface{},
    SlsWriteRoleArn: interface{},
}

Properties

Name Type Description
Name interface{} Property name: The name of the trail to be created, which must be unique for an account.
EventRw interface{} Property eventRw: Indicates whether the event is a read or a write event.
OssBucketName interface{} Property ossBucketName: The OSS bucket to which the trail delivers logs.
OssKeyPrefix interface{} Property ossKeyPrefix: The prefix of the specified OSS bucket name.
RoleName interface{} Property roleName: The RAM role in ActionTrail permitted by the user.
SlsProjectArn interface{} Property slsProjectArn: The unique ARN of the Log Service project.
SlsWriteRoleArn interface{} Property slsWriteRoleArn: The unique ARN of the Log Service role.

NameRequired

Name interface{}
  • Type: interface{}

Property name: The name of the trail to be created, which must be unique for an account.


EventRwOptional

EventRw interface{}
  • Type: interface{}

Property eventRw: Indicates whether the event is a read or a write event.

Valid values: Read, Write, and All. Default value: Write.


OssBucketNameOptional

OssBucketName interface{}
  • Type: interface{}

Property ossBucketName: The OSS bucket to which the trail delivers logs.

Ensure that this is an existing OSS bucket.


OssKeyPrefixOptional

OssKeyPrefix interface{}
  • Type: interface{}

Property ossKeyPrefix: The prefix of the specified OSS bucket name.

This parameter can be left empty.


RoleNameOptional

RoleName interface{}
  • Type: interface{}

Property roleName: The RAM role in ActionTrail permitted by the user.


SlsProjectArnOptional

SlsProjectArn interface{}
  • Type: interface{}

Property slsProjectArn: The unique ARN of the Log Service project.


SlsWriteRoleArnOptional

SlsWriteRoleArn interface{}
  • Type: interface{}

Property slsWriteRoleArn: The unique ARN of the Log Service role.