FlowLogMaxAggregationInterval

class aws_cdk.aws_ec2.FlowLogMaxAggregationInterval(value)

Bases: Enum

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

ExampleMetadata:

infused

Example:

vpc = ec2.Vpc(self, "Vpc")

vpc.add_flow_log("FlowLogS3",
    destination=ec2.FlowLogDestination.to_s3()
)

# Only reject traffic and interval every minute.
vpc.add_flow_log("FlowLogCloudWatch",
    traffic_type=ec2.FlowLogTrafficType.REJECT,
    max_aggregation_interval=ec2.FlowLogMaxAggregationInterval.ONE_MINUTE
)

Attributes

ONE_MINUTE

1 minute (60 seconds).

TEN_MINUTES

10 minutes (600 seconds).