Skip to content

TrailProps

Properties for defining a Trail.

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

Initializer

import { TrailProps } from '@alicloud/ros-cdk-actiontrail'
const trailProps: TrailProps = { ... }

Properties

Name Type Description
name string | @alicloud/ros-cdk-core.IResolvable Property name: The name of the trail to be created, which must be unique for an account.
eventRw string | @alicloud/ros-cdk-core.IResolvable Property eventRw: Indicates whether the event is a read or a write event.
ossBucketName string | @alicloud/ros-cdk-core.IResolvable Property ossBucketName: The OSS bucket to which the trail delivers logs.
ossKeyPrefix string | @alicloud/ros-cdk-core.IResolvable Property ossKeyPrefix: The prefix of the specified OSS bucket name.
roleName string | @alicloud/ros-cdk-core.IResolvable Property roleName: The RAM role in ActionTrail permitted by the user.
slsProjectArn string | @alicloud/ros-cdk-core.IResolvable Property slsProjectArn: The unique ARN of the Log Service project.
slsWriteRoleArn string | @alicloud/ros-cdk-core.IResolvable Property slsWriteRoleArn: The unique ARN of the Log Service role.

nameRequired

public readonly name: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


eventRwOptional

public readonly eventRw: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

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


ossBucketNameOptional

public readonly ossBucketName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

Ensure that this is an existing OSS bucket.


ossKeyPrefixOptional

public readonly ossKeyPrefix: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

This parameter can be left empty.


roleNameOptional

public readonly roleName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


slsProjectArnOptional

public readonly slsProjectArn: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


slsWriteRoleArnOptional

public readonly slsWriteRoleArn: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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