Skip to content

TrailProps

Properties for defining a Trail.

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

Initializer

import com.aliyun.ros.cdk.actiontrail.TrailProps;
TrailProps.builder()
    .name(java.lang.String)
    .name(IResolvable)
//  .eventRw(java.lang.String)
//  .eventRw(IResolvable)
//  .ossBucketName(java.lang.String)
//  .ossBucketName(IResolvable)
//  .ossKeyPrefix(java.lang.String)
//  .ossKeyPrefix(IResolvable)
//  .roleName(java.lang.String)
//  .roleName(IResolvable)
//  .slsProjectArn(java.lang.String)
//  .slsProjectArn(IResolvable)
//  .slsWriteRoleArn(java.lang.String)
//  .slsWriteRoleArn(IResolvable)
    .build();

Properties

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

nameRequired

public java.lang.Object getName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


eventRwOptional

public java.lang.Object getEventRw();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getOssBucketName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getOssKeyPrefix();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

This parameter can be left empty.


roleNameOptional

public java.lang.Object getRoleName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


slsProjectArnOptional

public java.lang.Object getSlsProjectArn();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


slsWriteRoleArnOptional

public java.lang.Object getSlsWriteRoleArn();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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