aws-cdk-lib.aws_appmesh.IpPreference

enum IpPreference

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

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

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

Members

NameDescription
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.

IPV4_ONLY

Use IPv4 when sending traffic to a local application.

Only use IPv4 for service discovery.


IPV4_PREFERRED

Use IPv4 when sending traffic to a local application.

First attempt to use IPv4 and fall back to IPv6 for service discovery.


IPV6_ONLY

Use IPv6 when sending traffic to a local application.

Only use IPv6 for service discovery.


IPV6_PREFERRED

Use IPv6 when sending traffic to a local application.

First attempt to use IPv6 and fall back to IPv4 for service discovery.