Skip to content
v2.274.0

IpPreference Enum ​

Enum of supported IP preferences.

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 ​

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

Members ​

MemberDescription
IPV4_ONLYUse IPv4 when sending traffic to a local application.
IPV4_PREFERREDUse IPv4 when sending traffic to a local application.
IPV6_ONLYUse IPv6 when sending traffic to a local application.
IPV6_PREFERREDUse IPv6 when sending traffic to a local application.

Referenced by ​