Interface FlowLogOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
FlowLogProps
- 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 software.amazon.jsii.JsiiSerializable
Options to add a flow log to a VPC.
Example:
Vpc vpc = new Vpc(this, "Vpc"); vpc.addFlowLog("FlowLogS3", FlowLogOptions.builder() .destination(FlowLogDestination.toS3()) .build()); vpc.addFlowLog("FlowLogCloudWatch", FlowLogOptions.builder() .trafficType(FlowLogTrafficType.REJECT) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forFlowLogOptions
static final class
An implementation forFlowLogOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlowLogOptions.Builder
builder()
default FlowLogDestination
Specifies the type of destination to which the flow log data is to be published.default FlowLogTrafficType
The type of traffic to log.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
The type of traffic to log.You can log traffic that the resource accepts or rejects, or all traffic.
Default: ALL
-
builder
- Returns:
- a
FlowLogOptions.Builder
ofFlowLogOptions
-