Skip to content
v2.278.0

PartitionedPrefixProperty Struct ​

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 ​

ts
// 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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

partitioned_prefix_property = s3.CfnBucket.PartitionedPrefixProperty(
    partition_date_source="partitionDateSource"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;

PartitionedPrefixProperty partitionedPrefixProperty = PartitionedPrefixProperty.builder()
        .partitionDateSource("partitionDateSource")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

var partitionedPrefixProperty = new PartitionedPrefixProperty {
    PartitionDateSource = "partitionDateSource"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

partitionedPrefixProperty := &PartitionedPrefixProperty{
	PartitionDateSource: jsii.String("partitionDateSource"),
}

Properties ​

partitionDateSourceoptionalstringpartition_date_sourceoptionalstrpartitionDateSourceoptionalStringPartitionDateSourceoptionalstringPartitionDateSourceoptional*string #
Specifies the partition date source for the partitioned prefix. `PartitionDateSource` can be `EventTime` or `DeliveryTime` .
notes

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.