enum FlowLogTrafficType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.FlowLogTrafficType |
Java | software.amazon.awscdk.services.ec2.FlowLogTrafficType |
Python | aws_cdk.aws_ec2.FlowLogTrafficType |
TypeScript (source) | @aws-cdk/aws-ec2 » FlowLogTrafficType |
The type of VPC traffic to log.
Example
const vpc = new ec2.Vpc(this, 'Vpc');
vpc.addFlowLog('FlowLogS3', {
destination: ec2.FlowLogDestination.toS3()
});
vpc.addFlowLog('FlowLogCloudWatch', {
trafficType: ec2.FlowLogTrafficType.REJECT
});
Members
Name | Description |
---|---|
ACCEPT | Only log accepts. |
ALL | Log all requests. |
REJECT | Only log rejects. |
ACCEPT
Only log accepts.
ALL
Log all requests.
REJECT
Only log rejects.