Skip to content

TrailProps

Properties for defining a Trail.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Actiontrail;
new TrailProps {
    object Name,
    object EventRw = null,
    object OssBucketName = null,
    object OssKeyPrefix = null,
    object RoleName = null,
    object SlsProjectArn = null,
    object SlsWriteRoleArn = null
};

Properties

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

NameRequired

public object Name { get; set; }
  • Type: object

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


EventRwOptional

public object EventRw { get; set; }
  • Type: object

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

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


OssBucketNameOptional

public object OssBucketName { get; set; }
  • Type: object

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

Ensure that this is an existing OSS bucket.


OssKeyPrefixOptional

public object OssKeyPrefix { get; set; }
  • Type: object

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

This parameter can be left empty.


RoleNameOptional

public object RoleName { get; set; }
  • Type: object

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


SlsProjectArnOptional

public object SlsProjectArn { get; set; }
  • Type: object

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


SlsWriteRoleArnOptional

public object SlsWriteRoleArn { get; set; }
  • Type: object

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