aws-cdk-lib.aws_appmesh.CfnVirtualNode.ServiceDiscoveryProperty

interface ServiceDiscoveryProperty

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

An object that represents the service discovery information for a virtual node.

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 serviceDiscoveryProperty: appmesh.CfnVirtualNode.ServiceDiscoveryProperty = {
  awsCloudMap: {
    namespaceName: 'namespaceName',
    serviceName: 'serviceName',

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

    // the properties below are optional
    ipPreference: 'ipPreference',
    responseType: 'responseType',
  },
};

Properties

NameTypeDescription
awsCloudMap?IResolvable | AwsCloudMapServiceDiscoveryPropertySpecifies any AWS Cloud Map information for the virtual node.
dns?IResolvable | DnsServiceDiscoveryPropertySpecifies the DNS information for the virtual node.

awsCloudMap?

Type: IResolvable | AwsCloudMapServiceDiscoveryProperty (optional)

Specifies any AWS Cloud Map information for the virtual node.


dns?

Type: IResolvable | DnsServiceDiscoveryProperty (optional)

Specifies the DNS information for the virtual node.