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. |
Name
Required
public object Name { get; set; }
- Type: object
Property name: The name of the trail to be created, which must be unique for an account.
EventRw
Optional
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.
OssBucketName
Optional
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.
OssKeyPrefix
Optional
public object OssKeyPrefix { get; set; }
- Type: object
Property ossKeyPrefix: The prefix of the specified OSS bucket name.
This parameter can be left empty.
RoleName
Optional
public object RoleName { get; set; }
- Type: object
Property roleName: The RAM role in ActionTrail permitted by the user.
SlsProjectArn
Optional
public object SlsProjectArn { get; set; }
- Type: object
Property slsProjectArn: The unique ARN of the Log Service project.
SlsWriteRoleArn
Optional
public object SlsWriteRoleArn { get; set; }
- Type: object
Property slsWriteRoleArn: The unique ARN of the Log Service role.