Skip to content
v2.275.0

AwsCloudMapServiceDiscoveryProperty Struct ​

An object that represents the AWS Cloud Map service discovery information for your virtual node.

AWS Cloud Map is not available in the eu-south-1 Region.

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 awsCloudMapServiceDiscoveryProperty: appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty = {
  namespaceName: 'namespaceName',
  serviceName: 'serviceName',

  // the properties below are optional
  attributes: [{
    key: 'key',
    value: 'value',
  }],
  ipPreference: 'ipPreference',
};

Properties ​

attributesoptionalIResolvable | IResolvable | CfnVirtualNode.AwsCloudMapInstanceAttributeProperty[]attributesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AwsCloudMapInstanceAttributeProperty]]]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{}#
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.

Only instances that match all of the specified key/value pairs will be returned.

ipPreferenceoptionalstringip_preferenceoptionalstripPreferenceoptionalStringIpPreferenceoptionalstringIpPreferenceoptional*string#
The preferred IP version that this virtual node uses.

Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.

namespaceNamestringnamespace_namestrnamespaceNameStringNamespaceNamestringNamespaceName*stringrequired#
The HTTP name of the AWS Cloud Map namespace to use.
serviceNamestringservice_namestrserviceNameStringServiceNamestringServiceName*stringrequired#
The name of the AWS Cloud Map service to use.