Interface FlowLogProps

All Superinterfaces:
FlowLogOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
FlowLogProps.Jsii$Proxy

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

Example:

 Vpc vpc;
 LogGroup logGroup = new LogGroup(this, "MyCustomLogGroup");
 Role role = Role.Builder.create(this, "MyCustomRole")
         .assumedBy(new ServicePrincipal("vpc-flow-logs.amazonaws.com"))
         .build();
 FlowLog.Builder.create(this, "FlowLog")
         .resourceType(FlowLogResourceType.fromVpc(vpc))
         .destination(FlowLogDestination.toCloudWatchLogs(logGroup, role))
         .build();
 
  • 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()
      Returns:
      a FlowLogProps.Builder of FlowLogProps