@Stability(value=Experimental) public static final class FlowLogProps.Builder extends Object implements software.amazon.jsii.Builder<FlowLogProps>
FlowLogProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
FlowLogProps |
build()
Builds the configured instance.
|
FlowLogProps.Builder |
destination(FlowLogDestination destination)
Sets the value of
FlowLogOptions.getDestination() |
FlowLogProps.Builder |
flowLogName(String flowLogName)
Sets the value of
FlowLogProps.getFlowLogName() |
FlowLogProps.Builder |
resourceType(FlowLogResourceType resourceType)
Sets the value of
FlowLogProps.getResourceType() |
FlowLogProps.Builder |
trafficType(FlowLogTrafficType trafficType)
Sets the value of
FlowLogOptions.getTrafficType() |
@Stability(value=Experimental) public FlowLogProps.Builder resourceType(FlowLogResourceType resourceType)
FlowLogProps.getResourceType()
resourceType
- The type of resource for which to create the flow log. This parameter is required.this
@Stability(value=Experimental) public FlowLogProps.Builder flowLogName(String flowLogName)
FlowLogProps.getFlowLogName()
flowLogName
- The name of the FlowLog.
It is not recommended to use an explicit name.this
@Stability(value=Experimental) public FlowLogProps.Builder destination(FlowLogDestination destination)
FlowLogOptions.getDestination()
destination
- 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 S3this
@Stability(value=Experimental) public FlowLogProps.Builder trafficType(FlowLogTrafficType trafficType)
FlowLogOptions.getTrafficType()
trafficType
- The type of traffic to log.
You can log traffic that the resource accepts or rejects, or all traffic.this
@Stability(value=Experimental) public FlowLogProps build()
build
in interface software.amazon.jsii.Builder<FlowLogProps>
FlowLogProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.