PartitionDateSource

class aws_cdk.aws_s3.PartitionDateSource(value)

Bases: Enum

The date source for the partitioned prefix.

ExampleMetadata:

infused

Example:

access_logs_bucket = s3.Bucket(self, "AccessLogsBucket")

bucket = s3.Bucket(self, "MyBucket",
    server_access_logs_bucket=access_logs_bucket,
    server_access_logs_prefix="logs",
    target_object_key_format=s3.TargetObjectKeyFormat.partitioned_prefix(s3.PartitionDateSource.EVENT_TIME)
)

Attributes

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.