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
| Member | Description |
|---|---|
ACCEPT | Only log accepts. |
ALL | Log all requests. |
REJECT | Only log rejects. |
Referenced by
FlowLogOptions.trafficTypetraffic_typetrafficTypeTrafficTypeTrafficType