TrailProps
Properties for defining a Trail
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-actiontrail-trail
Initializer
import ros_cdk_actiontrail
ros_cdk_actiontrail.TrailProps(
name: typing.Union[str, IResolvable],
event_rw: typing.Union[str, IResolvable] = None,
oss_bucket_name: typing.Union[str, IResolvable] = None,
oss_key_prefix: typing.Union[str, IResolvable] = None,
role_name: typing.Union[str, IResolvable] = None,
sls_project_arn: typing.Union[str, IResolvable] = None,
sls_write_role_arn: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property name: The name of the trail to be created, which must be unique for an account. |
event_rw |
typing.Union[str, ros_cdk_core.IResolvable] |
Property eventRw: Indicates whether the event is a read or a write event. |
oss_bucket_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ossBucketName: The OSS bucket to which the trail delivers logs. |
oss_key_prefix |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ossKeyPrefix: The prefix of the specified OSS bucket name. |
role_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property roleName: The RAM role in ActionTrail permitted by the user. |
sls_project_arn |
typing.Union[str, ros_cdk_core.IResolvable] |
Property slsProjectArn: The unique ARN of the Log Service project. |
sls_write_role_arn |
typing.Union[str, ros_cdk_core.IResolvable] |
Property slsWriteRoleArn: The unique ARN of the Log Service role. |
name
Required
name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property name: The name of the trail to be created, which must be unique for an account.
event_rw
Optional
event_rw: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
oss_bucket_name
Optional
oss_bucket_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ossBucketName: The OSS bucket to which the trail delivers logs.
Ensure that this is an existing OSS bucket.
oss_key_prefix
Optional
oss_key_prefix: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ossKeyPrefix: The prefix of the specified OSS bucket name.
This parameter can be left empty.
role_name
Optional
role_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property roleName: The RAM role in ActionTrail permitted by the user.
sls_project_arn
Optional
sls_project_arn: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property slsProjectArn: The unique ARN of the Log Service project.
sls_write_role_arn
Optional
sls_write_role_arn: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property slsWriteRoleArn: The unique ARN of the Log Service role.