Skip to content
v2.275.0

FlowLogTrafficType Enum ​

The type of VPC traffic to log.

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 ​

MemberDescription
ACCEPTOnly log accepts.
ALLLog all requests.
REJECTOnly log rejects.

Referenced by ​

  • FlowLogOptions.trafficTypetraffic_typetrafficTypeTrafficTypeTrafficType