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