aws-cdk-lib.aws_appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty

interface AwsCloudMapServiceDiscoveryProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnVirtualNode_AwsCloudMapServiceDiscoveryProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty
Pythonaws_cdk.aws_appmesh.CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty
TypeScript aws-cdk-lib » aws_appmesh » CfnVirtualNode » AwsCloudMapServiceDiscoveryProperty

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

// 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

NameTypeDescription
namespaceNamestringThe HTTP name of the AWS Cloud Map namespace to use.
serviceNamestringThe name of the AWS Cloud Map service to use.
attributes?IResolvable | IResolvable | AwsCloudMapInstanceAttributeProperty[]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.
ipPreference?stringThe preferred IP version that this virtual node uses.

namespaceName

Type: string

The HTTP name of the AWS Cloud Map namespace to use.


serviceName

Type: string

The name of the AWS Cloud Map service to use.


attributes?

Type: IResolvable | IResolvable | AwsCloudMapInstanceAttributeProperty[] (optional)

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.


ipPreference?

Type: string (optional)

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.