# PartitionDateSource

The date source for the partitioned prefix.

- Source: [`aws-s3/lib/bucket.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-s3/lib/bucket.ts#L1524)
- Type last changed: v2.124.0 · 26 Jan 2024

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