Interface FlowLogOptions

All Superinterfaces:
All Known Subinterfaces:
All Known Implementing Classes:
FlowLogOptions.Jsii$Proxy, FlowLogProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.313Z") @Stability(Stable) public interface FlowLogOptions extends
Options to add a flow log to a VPC.


 Vpc vpc = new Vpc(this, "Vpc");
 vpc.addFlowLog("FlowLogS3", FlowLogOptions.builder()
 vpc.addFlowLog("FlowLogCloudWatch", FlowLogOptions.builder()
  • Method Details

    • getDestination

      @Stability(Stable) @Nullable default FlowLogDestination getDestination()
      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

      Default: FlowLogDestinationType.toCloudWatchLogs()

    • getTrafficType

      @Stability(Stable) @Nullable default FlowLogTrafficType getTrafficType()
      The type of traffic to log.

      You can log traffic that the resource accepts or rejects, or all traffic.

      Default: ALL

    • builder

      @Stability(Stable) static FlowLogOptions.Builder builder()
      a FlowLogOptions.Builder of FlowLogOptions