# TargetObjectKeyFormatProperty

Amazon S3 key format for log objects.

Only one format, PartitionedPrefix or SimplePrefix, is allowed.

- Source: Generated code
- Type last changed: v2.112.0 · 1 Dec 2023

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

- `partitionedPrefix`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBucket.PartitionedPrefixProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.CfnBucket.PartitionedPrefixProperty.html) — Partitioned S3 key for log objects.

- `simplePrefix`: any — To use the simple format for S3 keys for log objects.

  To specify SimplePrefix format, set SimplePrefix to {}.
