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. |
EventRw | object | Property eventRw: Indicates whether the event is a read or a write event. |
OssBucketName | object | Property ossBucketName: The OSS bucket for the trail delivery. |
OssKeyPrefix | object | Property ossKeyPrefix: The prefix for the filenames in the OSS bucket for the trail delivery. |
RoleName | object | Property roleName: The name of the associated role for Operation Audit, with a default value of serviceroleforactiontrail. |
SlsProjectArn | object | Property slsProjectArn: The ARN of the Log Service project for the trail delivery. |
SlsWriteRoleArn | object | Property slsWriteRoleArn: The ARN of the role assumed by Operation Audit when delivering operation events to the Log Service project. |
NameRequired
public object Name { get; set; }
- Type: object
Property name: The name of the trail to be created.
Length should be between 6 and 36 characters, must start with a lowercase letter, and can include lowercase letters, numbers, hyphens (-), and underscores (_).
The trail name must be unique within the same 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 for the trail delivery.
Length should be between 3 and 63 characters, must start with a lowercase letter or number, and can include lowercase letters, numbers, and hyphens (-).
At least one of OssBucketName and SlsProjectArn must be specified.
OssKeyPrefixOptional
public object OssKeyPrefix { get; set; }
- Type: object
Property ossKeyPrefix: The prefix for the filenames in the OSS bucket for the trail delivery.
Length should be between 6 and 32 characters, must start with a letter, and can include letters, numbers, hyphens (-), forward slashes (/), and underscores (_).
RoleNameOptional
public object RoleName { get; set; }
- Type: object
Property roleName: The name of the associated role for Operation Audit, with a default value of serviceroleforactiontrail.
SlsProjectArnOptional
public object SlsProjectArn { get; set; }
- Type: object
Property slsProjectArn: The ARN of the Log Service project for the trail delivery.
At least one of OssBucketName and SlsProjectArn must be specified.
SlsWriteRoleArnOptional
public object SlsWriteRoleArn { get; set; }
- Type: object
Property slsWriteRoleArn: The ARN of the role assumed by Operation Audit when delivering operation events to the Log Service project.
- If this parameter is not specified, Operation Audit will create the necessary resources by creating a service-linked role.
- If this parameter is specified, when you need to deliver events to the current account, you need to grant the RAM role the permissions of the Operation Audit service-linked role. When you need to deliver events to another account, you need to bind the system permission policy for event delivery to the RAM role. For more information on cross-account delivery, see Deliver Events from Multiple Accounts to One Account.