@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.821Z") @Stability(value=Experimental) public enum NetworkMode extends Enum<NetworkMode>
| Enum Constant and Description |
|---|
AWS_VPC
(experimental) The task is allocated an elastic network interface.
|
BRIDGE
(experimental) The task utilizes Docker's built-in virtual network which runs inside each container instance.
|
HOST
(experimental) The task bypasses Docker's built-in virtual network and maps container ports directly to the EC2 instance's network interface directly.
|
NAT
(experimental) The task utilizes NAT network mode required by Windows containers.
|
NONE
(experimental) The task's containers do not have external connectivity and port mappings can't be specified in the container definition.
|
| Modifier and Type | Method and Description |
|---|---|
static NetworkMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final NetworkMode NONE
@Stability(value=Experimental) public static final NetworkMode BRIDGE
@Stability(value=Experimental) public static final NetworkMode AWS_VPC
@Stability(value=Experimental) public static final NetworkMode HOST
In this mode, you can't run multiple instantiations of the same task on a single container instance when port mappings are used.
@Stability(value=Experimental) public static final NetworkMode NAT
This is the only supported network mode for Windows containers. For more information, see Task Definition Parameters.
public static NetworkMode[] values()
for (NetworkMode c : NetworkMode.values()) System.out.println(c);
public static NetworkMode 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 © 2021. All rights reserved.