Modifier and Type | Method and Description |
---|---|
FlowLog |
build() |
static FlowLog.Builder |
create(Construct scope,
String id)
EXPERIMENTAL
|
FlowLog.Builder |
destination(FlowLogDestination destination)
Specifies the type of destination to which the flow log data is to be published.
|
FlowLog.Builder |
flowLogName(String flowLogName)
The name of the FlowLog.
|
FlowLog.Builder |
resourceType(FlowLogResourceType resourceType)
The type of resource for which to create the flow log.
|
FlowLog.Builder |
trafficType(FlowLogTrafficType trafficType)
The type of traffic to log.
|
@Stability(value=Experimental) public static FlowLog.Builder create(Construct scope, String id)
scope
- This parameter is required.id
- This parameter is required.FlowLog.Builder
.@Stability(value=Experimental) public FlowLog.Builder destination(FlowLogDestination destination)
Flow log data can be published to CloudWatch Logs or Amazon S3
Default: FlowLogDestinationType.toCloudWatchLogs()
EXPERIMENTAL
destination
- Specifies the type of destination to which the flow log data is to be published. This parameter is required.this
@Stability(value=Experimental) public FlowLog.Builder trafficType(FlowLogTrafficType trafficType)
You can log traffic that the resource accepts or rejects, or all traffic.
Default: ALL
EXPERIMENTAL
trafficType
- The type of traffic to log. This parameter is required.this
@Stability(value=Experimental) public FlowLog.Builder resourceType(FlowLogResourceType resourceType)
EXPERIMENTAL
resourceType
- The type of resource for which to create the flow log. This parameter is required.this
@Stability(value=Experimental) public FlowLog.Builder flowLogName(String flowLogName)
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.
EXPERIMENTAL
flowLogName
- The name of the FlowLog. This parameter is required.this
@Stability(value=Experimental) public FlowLog build()
Copyright © 2020. All rights reserved.