Interface FlowLogProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.314Z") @Stability(Stable) public interface FlowLogProps extends, FlowLogOptions
Properties of a VPC Flow Log.


 Vpc vpc;
 LogGroup logGroup = new LogGroup(this, "MyCustomLogGroup");
 Role role = Role.Builder.create(this, "MyCustomRole")
         .assumedBy(new ServicePrincipal(""))
 FlowLog.Builder.create(this, "FlowLog")
         .destination(FlowLogDestination.toCloudWatchLogs(logGroup, role))
  • Method Details

    • getResourceType

      @Stability(Stable) @NotNull FlowLogResourceType getResourceType()
      The type of resource for which to create the flow log.
    • getFlowLogName

      @Stability(Stable) @Nullable default String getFlowLogName()
      The name of the FlowLog.

      It is not recommended to use an explicit name.

      Default: If you don't specify a flowLogName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

    • builder

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