aws-cdk-lib.aws_ec2.FlowLogMaxAggregationInterval

enum FlowLogMaxAggregationInterval

LanguageType name
.NETAmazon.CDK.AWS.EC2.FlowLogMaxAggregationInterval
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#FlowLogMaxAggregationInterval
Javasoftware.amazon.awscdk.services.ec2.FlowLogMaxAggregationInterval
Pythonaws_cdk.aws_ec2.FlowLogMaxAggregationInterval
TypeScript (source)aws-cdk-lib » aws_ec2 » FlowLogMaxAggregationInterval

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

Example

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

NameDescription
ONE_MINUTE1 minute (60 seconds).
TEN_MINUTES10 minutes (600 seconds).

ONE_MINUTE

1 minute (60 seconds).


TEN_MINUTES

10 minutes (600 seconds).