FlowLogTrafficType¶
-
class
aws_cdk.aws_ec2.
FlowLogTrafficType
(value)¶ Bases:
enum.Enum
The type of VPC traffic to log.
- ExampleMetadata
infused
Example:
vpc = ec2.Vpc(self, "Vpc") vpc.add_flow_log("FlowLogS3", destination=ec2.FlowLogDestination.to_s3() ) vpc.add_flow_log("FlowLogCloudWatch", traffic_type=ec2.FlowLogTrafficType.REJECT )
Attributes
-
ACCEPT
¶ Only log accepts.
-
ALL
¶ Log all requests.
-
REJECT
¶ Only log rejects.