enum PartitionDateSource
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.PartitionDateSource |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#PartitionDateSource |
Java | software.amazon.awscdk.services.s3.PartitionDateSource |
Python | aws_cdk.aws_s3.PartitionDateSource |
TypeScript (source) | aws-cdk-lib » aws_s3 » PartitionDateSource |
The date source for the partitioned prefix.
Example
const accessLogsBucket = new s3.Bucket(this, 'AccessLogsBucket');
const bucket = new s3.Bucket(this, 'MyBucket', {
serverAccessLogsBucket: accessLogsBucket,
serverAccessLogsPrefix: 'logs',
targetObjectKeyFormat: s3.TargetObjectKeyFormat.partitionedPrefix(s3.PartitionDateSource.EVENT_TIME),
});
Members
Name | Description |
---|---|
EVENT_TIME | The year, month, and day will be based on the timestamp of the S3 event in the file that's been delivered. |
DELIVERY_TIME | The year, month, and day will be based on the time when the log file was delivered to S3. |
EVENT_TIME
The year, month, and day will be based on the timestamp of the S3 event in the file that's been delivered.
DELIVERY_TIME
The year, month, and day will be based on the time when the log file was delivered to S3.