Skip to content
v2.278.0

MeshServiceDiscoveryProperty ​

Struct External

An object that represents the service discovery information for a service mesh.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const meshServiceDiscoveryProperty: appmesh.CfnMesh.MeshServiceDiscoveryProperty = {
  ipPreference: 'ipPreference',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

mesh_service_discovery_property = appmesh.CfnMesh.MeshServiceDiscoveryProperty(
    ip_preference="ipPreference"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

MeshServiceDiscoveryProperty meshServiceDiscoveryProperty = MeshServiceDiscoveryProperty.builder()
        .ipPreference("ipPreference")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var meshServiceDiscoveryProperty = new MeshServiceDiscoveryProperty {
    IpPreference = "ipPreference"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

meshServiceDiscoveryProperty := &MeshServiceDiscoveryProperty{
	IpPreference: jsii.String("ipPreference"),
}

Properties ​

ipPreferenceoptionalstringip_preferenceoptionalstripPreferenceoptionalStringIpPreferenceoptionalstringIpPreferenceoptional*string #
The IP version to use to control traffic within the mesh.