TrailProps
Properties for defining a Trail.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-actiontrail-trail
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkactiontrail"
&alicloudroscdkactiontrail.TrailProps {
Name: interface{},
EventRw: interface{},
OssBucketName: interface{},
OssKeyPrefix: interface{},
RoleName: interface{},
SlsProjectArn: interface{},
SlsWriteRoleArn: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Name | interface{} | Property name: The name of the trail to be created. |
EventRw | interface{} | Property eventRw: Indicates whether the event is a read or a write event. |
OssBucketName | interface{} | Property ossBucketName: The OSS bucket for the trail delivery. |
OssKeyPrefix | interface{} | Property ossKeyPrefix: The prefix for the filenames in the OSS bucket for the trail delivery. |
RoleName | interface{} | Property roleName: The name of the associated role for Operation Audit, with a default value of serviceroleforactiontrail. |
SlsProjectArn | interface{} | Property slsProjectArn: The ARN of the Log Service project for the trail delivery. |
SlsWriteRoleArn | interface{} | Property slsWriteRoleArn: The ARN of the role assumed by Operation Audit when delivering operation events to the Log Service project. |
NameRequired
Name interface{}
- Type: interface{}
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
EventRw interface{}
- Type: interface{}
Property eventRw: Indicates whether the event is a read or a write event.
Valid values: Read, Write, and All. Default value: Write.
OssBucketNameOptional
OssBucketName interface{}
- Type: interface{}
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
OssKeyPrefix interface{}
- Type: interface{}
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
RoleName interface{}
- Type: interface{}
Property roleName: The name of the associated role for Operation Audit, with a default value of serviceroleforactiontrail.
SlsProjectArnOptional
SlsProjectArn interface{}
- Type: interface{}
Property slsProjectArn: The ARN of the Log Service project for the trail delivery.
At least one of OssBucketName and SlsProjectArn must be specified.
SlsWriteRoleArnOptional
SlsWriteRoleArn interface{}
- Type: interface{}
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.