Skip to content
v2.274.0

PartitionDateSource Enum ​

The date source for the partitioned prefix.

Example ​

ts
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 ​

MemberDescription
EVENT_TIMEThe year, month, and day will be based on the timestamp of the S3 event in the file that's been delivered.
DELIVERY_TIMEThe year, month, and day will be based on the time when the log file was delivered to S3.