Interface MeshServiceDiscovery
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MeshServiceDiscovery.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:10.161Z")
@Stability(Stable)
public interface MeshServiceDiscovery
extends software.amazon.jsii.JsiiSerializable
Properties for Mesh Service Discovery.
Example:
Mesh mesh = Mesh.Builder.create(this, "AppMesh") .meshName("myAwsMesh") .serviceDiscovery(MeshServiceDiscovery.builder() .ipPreference(IpPreference.IPV4_ONLY) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forMeshServiceDiscovery
static final class
An implementation forMeshServiceDiscovery
-
Method Summary
Modifier and TypeMethodDescriptionstatic MeshServiceDiscovery.Builder
builder()
default IpPreference
IP preference applied to all Virtual Nodes in the Mesh.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIpPreference
IP preference applied to all Virtual Nodes in the Mesh.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.
-
builder
- Returns:
- a
MeshServiceDiscovery.Builder
ofMeshServiceDiscovery
-