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
| Member | 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. |