Class MeshServiceDiscovery
Properties for Mesh Service Discovery.
Inheritance
System.Object
MeshServiceDiscovery
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MeshServiceDiscovery : Object, IMeshServiceDiscovery
Syntax (vb)
Public Class MeshServiceDiscovery
Inherits Object
Implements IMeshServiceDiscovery
Remarks
ExampleMetadata: infused
Examples
var mesh = new Mesh(this, "AppMesh", new MeshProps {
MeshName = "myAwsMesh",
ServiceDiscovery = new MeshServiceDiscovery {
IpPreference = IpPreference.IPV4_ONLY
}
});
Synopsis
Constructors
MeshServiceDiscovery() |
Properties
IpPreference | IP preference applied to all Virtual Nodes in the Mesh. |
Constructors
MeshServiceDiscovery()
public MeshServiceDiscovery()
Properties
IpPreference
IP preference applied to all Virtual Nodes in the Mesh.
public Nullable<IpPreference> IpPreference { get; set; }
Property Value
System.Nullable<IpPreference>
Remarks
Default: - No IP preference is applied to any of the Virtual Nodes in the Mesh. Virtual Nodes without an IP preference will have the following configured. Envoy listeners are configured to bind only to IPv4. Envoy will use IPv4 when sending traffic to a local application. For DNS service discovery, the Envoy DNS resolver to prefer using IPv6 and fall back to IPv4. For CloudMap service discovery, App Mesh will prefer using IPv4 and fall back to IPv6 for IPs returned by CloudMap.