Class IpPreference
Enum of supported IP preferences.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class IpPreference : Enum
Syntax (vb)
Public NotInheritable Class IpPreference
Inherits
Enum
Remarks
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.
ExampleMetadata: infused
Examples
var mesh = new Mesh(this, "AppMesh", new MeshProps {
MeshName = "myAwsMesh",
ServiceDiscovery = new MeshServiceDiscovery {
IpPreference = IpPreference.IPV4_ONLY
}
});
Synopsis
Fields
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. |
value__ |
Fields
IPV4_ONLY
Use IPv4 when sending traffic to a local application.
public const IpPreference IPV4_ONLY
Field Value
Type | Description |
---|---|
IpPreference |
Remarks
Only use IPv4 for service discovery.
IPV4_PREFERRED
Use IPv4 when sending traffic to a local application.
public const IpPreference IPV4_PREFERRED
Field Value
Type | Description |
---|---|
IpPreference |
Remarks
First attempt to use IPv4 and fall back to IPv6 for service discovery.
IPV6_ONLY
Use IPv6 when sending traffic to a local application.
public const IpPreference IPV6_ONLY
Field Value
Type | Description |
---|---|
IpPreference |
Remarks
Only use IPv6 for service discovery.
IPV6_PREFERRED
Use IPv6 when sending traffic to a local application.
public const IpPreference IPV6_PREFERRED
Field Value
Type | Description |
---|---|
IpPreference |
Remarks
First attempt to use IPv6 and fall back to IPv4 for service discovery.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |