interface FlowLogOptions
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.EC2.FlowLogOptions | 
|  Java | software.amazon.awscdk.services.ec2.FlowLogOptions | 
|  Python | aws_cdk.aws_ec2.FlowLogOptions | 
|  TypeScript (source) | @aws-cdk/aws-ec2»FlowLogOptions | 
Options to add a flow log to a VPC.
Example
const vpc = new ec2.Vpc(this, 'Vpc');
vpc.addFlowLog('FlowLogS3', {
  destination: ec2.FlowLogDestination.toS3()
});
vpc.addFlowLog('FlowLogCloudWatch', {
  trafficType: ec2.FlowLogTrafficType.REJECT
});
Properties
| Name | Type | Description | 
|---|---|---|
| destination? | Flow | Specifies the type of destination to which the flow log data is to be published. | 
| traffic | Flow | The type of traffic to log. | 
destination?
Type:
Flow
(optional, default: FlowLogDestinationType.toCloudWatchLogs())
Specifies the type of destination to which the flow log data is to be published.
Flow log data can be published to CloudWatch Logs or Amazon S3
trafficType?
Type:
Flow
(optional, default: ALL)
The type of traffic to log.
You can log traffic that the resource accepts or rejects, or all traffic.
