@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:42.971Z")
public interface FlowLogOptions
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());
Modifier and Type | Interface and Description |
---|---|
static class |
FlowLogOptions.Builder
A builder for
FlowLogOptions |
static class |
FlowLogOptions.Jsii$Proxy
An implementation for
FlowLogOptions |
Modifier and Type | Method and Description |
---|---|
static FlowLogOptions.Builder |
builder() |
default FlowLogDestination |
getDestination()
Specifies the type of destination to which the flow log data is to be published.
|
default FlowLogTrafficType |
getTrafficType()
The type of traffic to log.
|
default FlowLogDestination getDestination()
Flow log data can be published to CloudWatch Logs or Amazon S3
Default: FlowLogDestinationType.toCloudWatchLogs()
default FlowLogTrafficType getTrafficType()
You can log traffic that the resource accepts or rejects, or all traffic.
Default: ALL
static FlowLogOptions.Builder builder()
FlowLogOptions.Builder
of FlowLogOptions