@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.415Z") @Stability(value=Stable) public interface FlowLogOptions extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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.
|
@Stability(value=Stable) @Nullable default FlowLogDestination getDestination()
Flow log data can be published to CloudWatch Logs or Amazon S3
Default: FlowLogDestinationType.toCloudWatchLogs()
@Stability(value=Stable) @Nullable default FlowLogTrafficType getTrafficType()
You can log traffic that the resource accepts or rejects, or all traffic.
Default: ALL
@Stability(value=Stable) static FlowLogOptions.Builder builder()
FlowLogOptions.Builder of FlowLogOptionsCopyright © 2022. All rights reserved.