interface PartitionedPrefixProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.CfnBucket.PartitionedPrefixProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_PartitionedPrefixProperty |
Java | software.amazon.awscdk.services.s3.CfnBucket.PartitionedPrefixProperty |
Python | aws_cdk.aws_s3.CfnBucket.PartitionedPrefixProperty |
TypeScript | aws-cdk-lib » aws_s3 » CfnBucket » PartitionedPrefixProperty |
Amazon S3 keys for log objects are partitioned in the following format:.
[DestinationPrefix][SourceAccountId]/[SourceRegion]/[SourceBucket]/[YYYY]/[MM]/[DD]/[YYYY]-[MM]-[DD]-[hh]-[mm]-[ss]-[UniqueString]
PartitionedPrefix defaults to EventTime delivery when server access logs are delivered.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const partitionedPrefixProperty: s3.CfnBucket.PartitionedPrefixProperty = {
partitionDateSource: 'partitionDateSource',
};
Properties
Name | Type | Description |
---|---|---|
partition | string | Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime . |
partitionDateSource?
Type:
string
(optional)
Specifies the partition date source for the partitioned prefix. PartitionDateSource
can be EventTime
or DeliveryTime
.
For DeliveryTime
, the time in the log file names corresponds to the delivery time for the log files.
For EventTime
, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.