@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.565Z") @Stability(value=Stable) public enum IpPreference extends Enum<IpPreference>
Used to dictate the IP version for mesh wide and virtual node service discovery. Also used to specify the IP version that a sidecar Envoy uses when sending traffic to a local application.
Example:
// Example automatically generated from non-compiling source. May contain errors.
Mesh mesh = Mesh.Builder.create(this, "AppMesh")
.meshName("myAwsMesh")
.serviceDiscovery(MeshServiceDiscovery.builder()
.ipPreference(IpPreference.IPV4_ONLY)
.build())
.build();
| Enum Constant and Description |
|---|
IPV4_ONLY
Use IPv4 when sending traffic to a local application.
|
IPV4_PREFERRED
Use IPv4 when sending traffic to a local application.
|
IPV6_ONLY
Use IPv6 when sending traffic to a local application.
|
IPV6_PREFERRED
Use IPv6 when sending traffic to a local application.
|
| Modifier and Type | Method and Description |
|---|---|
static IpPreference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpPreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final IpPreference IPV4_ONLY
Only use IPv4 for service discovery.
@Stability(value=Stable) public static final IpPreference IPV4_PREFERRED
First attempt to use IPv4 and fall back to IPv6 for service discovery.
@Stability(value=Stable) public static final IpPreference IPV6_ONLY
Only use IPv6 for service discovery.
@Stability(value=Stable) public static final IpPreference IPV6_PREFERRED
First attempt to use IPv6 and fall back to IPv4 for service discovery.
public static IpPreference[] values()
for (IpPreference c : IpPreference.values()) System.out.println(c);
public static IpPreference 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.