@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:03.494Z") public enum FlowLogTrafficType extends java.lang.Enum<FlowLogTrafficType>
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());
Enum Constant and Description |
---|
ACCEPT
Only log accepts.
|
ALL
Log all requests.
|
REJECT
Only log rejects.
|
Modifier and Type | Method and Description |
---|---|
static FlowLogTrafficType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlowLogTrafficType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowLogTrafficType ACCEPT
public static final FlowLogTrafficType ALL
public static final FlowLogTrafficType REJECT
public static FlowLogTrafficType[] values()
for (FlowLogTrafficType c : FlowLogTrafficType.values()) System.out.println(c);
public static FlowLogTrafficType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null