Skip to content
v2.275.0

TargetObjectKeyFormatProperty Struct ​

Amazon S3 key format for log objects.

Only one format, PartitionedPrefix or SimplePrefix, is allowed.

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';

declare const simplePrefix: any;
const targetObjectKeyFormatProperty: s3.CfnBucket.TargetObjectKeyFormatProperty = {
  partitionedPrefix: {
    partitionDateSource: 'partitionDateSource',
  },
  simplePrefix: simplePrefix,
};

Properties ​

partitionedPrefixoptionalIResolvable | CfnBucket.PartitionedPrefixPropertypartitioned_prefixoptionaltyping.Union[IResolvable, PartitionedPrefixProperty]partitionedPrefixoptionalIResolvablePartitionedPrefixoptionalIResolvablePartitionedPrefixoptionalinterface{}#
Partitioned S3 key for log objects.
simplePrefixoptionalanysimple_prefixoptionalAnysimplePrefixoptionalObjectSimplePrefixoptionalobjectSimplePrefixoptionalinterface{}#
To use the simple format for S3 keys for log objects.

To specify SimplePrefix format, set SimplePrefix to {}.