enum IpPreference
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.IpPreference |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#IpPreference |
![]() | software.amazon.awscdk.services.appmesh.IpPreference |
![]() | aws_cdk.aws_appmesh.IpPreference |
![]() | 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
Name | Description |
---|---|
IPV4_ONLY | Use IPv4 when sending traffic to a local application. |
IPV4_PREFERRED | Use IPv4 when sending traffic to a local application. |
IPV6_ONLY | Use IPv6 when sending traffic to a local application. |
IPV6_PREFERRED | Use 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.