aws-cdk-lib.aws_appmesh.MeshServiceDiscovery

interface MeshServiceDiscovery

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.MeshServiceDiscovery
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#MeshServiceDiscovery
Javasoftware.amazon.awscdk.services.appmesh.MeshServiceDiscovery
Pythonaws_cdk.aws_appmesh.MeshServiceDiscovery
TypeScript (source)aws-cdk-lib » aws_appmesh » MeshServiceDiscovery

Properties for Mesh Service Discovery.

Example

const mesh = new appmesh.Mesh(this, 'AppMesh', {
  meshName: 'myAwsMesh',
  serviceDiscovery: {
    ipPreference: appmesh.IpPreference.IPV4_ONLY,
  },
});

Properties

NameTypeDescription
ipPreference?IpPreferenceIP preference applied to all Virtual Nodes in the Mesh.

ipPreference?

Type: IpPreference (optional, 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.)

IP preference applied to all Virtual Nodes in the Mesh.