# S3DestinationOptions

Options for writing logs to a S3 destination.

- Source: [`aws-ec2/lib/vpc-flow-logs.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts#L171)
- Type last changed: v2.32.0 · 14 Jul 2022

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const s3DestinationOptions: ec2.S3DestinationOptions = {
  fileFormat: ec2.FlowLogFileFormat.PLAIN_TEXT,
  hiveCompatiblePartitions: false,
  perHourPartition: false,
};
```

## Properties

- `fileFormat`: [FlowLogFileFormat](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.FlowLogFileFormat.html) = FlowLogFileFormat.PLAIN_TEXT — The format for the flow log.

- `hiveCompatiblePartitions`: boolean = false — Use Hive-compatible prefixes for flow logs stored in Amazon S3.

- `perHourPartition`: boolean = false — Partition the flow log per hour.
