enum FlowLogTrafficType
This page is available in another version. Click here for the v2 documentation.
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.FlowLogTrafficType |
![]() | software.amazon.awscdk.services.ec2.FlowLogTrafficType |
![]() | aws_cdk.aws_ec2.FlowLogTrafficType |
![]() | @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.