BucketLoggingProps
Properties for defining a BucketLogging.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-oss-bucketlogging
Initializer
import com.aliyun.ros.cdk.oss.BucketLoggingProps;
BucketLoggingProps.builder()
.bucket(java.lang.String)
.bucket(IResolvable)
.targetBucket(java.lang.String)
.targetBucket(IResolvable)
// .loggingRole(java.lang.String)
// .loggingRole(IResolvable)
// .targetPrefix(java.lang.String)
// .targetPrefix(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
bucket | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property bucket: The name of the bucket. |
targetBucket | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetBucket: The bucket that stores access logs. |
loggingRole | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property loggingRole: Authorization role used for bucket logging. |
targetPrefix | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property targetPrefix: The prefix of the saved log objects. |
bucketRequired
public java.lang.Object getBucket();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property bucket: The name of the bucket.
targetBucketRequired
public java.lang.Object getTargetBucket();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetBucket: The bucket that stores access logs.
loggingRoleOptional
public java.lang.Object getLoggingRole();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property loggingRole: Authorization role used for bucket logging.
targetPrefixOptional
public java.lang.Object getTargetPrefix();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property targetPrefix: The prefix of the saved log objects.
This element can be left empty.