@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.488Z") @Stability(value=Stable) public enum NatTrafficDirection extends Enum<NatTrafficDirection>
Example:
// Example automatically generated from non-compiling source. May contain errors.
InstanceType instanceType;
NatInstanceProvider provider = NatProvider.instance(NatInstanceProps.builder()
.instanceType(instanceType)
.defaultAllowedTraffic(NatTrafficDirection.OUTBOUND_ONLY)
.build());
Vpc.Builder.create(this, "TheVPC")
.natGatewayProvider(provider)
.build();
provider.connections.allowFrom(Peer.ipv4("1.2.3.4/8"), Port.tcp(80));
| Enum Constant and Description |
|---|
INBOUND_AND_OUTBOUND
Allow all outbound and inbound traffic.
|
NONE
Disallow all outbound and inbound traffic.
|
OUTBOUND_ONLY
Allow all outbound traffic and disallow all inbound traffic.
|
| Modifier and Type | Method and Description |
|---|---|
static NatTrafficDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NatTrafficDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final NatTrafficDirection OUTBOUND_ONLY
@Stability(value=Stable) public static final NatTrafficDirection INBOUND_AND_OUTBOUND
@Stability(value=Stable) public static final NatTrafficDirection NONE
public static NatTrafficDirection[] values()
for (NatTrafficDirection c : NatTrafficDirection.values()) System.out.println(c);
public static NatTrafficDirection valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.