# FlowLogMaxAggregationInterval

The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record.

- Source: [`aws-ec2/lib/vpc-flow-logs.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/vpc-flow-logs.ts#L504)
- Type last changed: v2.43.0 · 21 Sep 2022

## Example

```ts
const vpc = new ec2.Vpc(this, 'Vpc');

vpc.addFlowLog('FlowLogS3', {
  destination: ec2.FlowLogDestination.toS3()
});

// Only reject traffic and interval every minute.
vpc.addFlowLog('FlowLogCloudWatch', {
  trafficType: ec2.FlowLogTrafficType.REJECT,
  maxAggregationInterval: ec2.FlowLogMaxAggregationInterval.ONE_MINUTE,
});
```

## Members

| Member | Description |
| --- | --- |
| `ONE_MINUTE` | 1 minute (60 seconds). |
| `TEN_MINUTES` | 10 minutes (600 seconds). |

## Referenced by

- [`FlowLogOptions`](/v2/docs/aws-cdk-lib.aws_ec2.FlowLogOptions).maxAggregationInterval
