aws-cdk-lib.aws_appmesh.ServiceDiscoveryConfig

interface ServiceDiscoveryConfig

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.ServiceDiscoveryConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#ServiceDiscoveryConfig
Javasoftware.amazon.awscdk.services.appmesh.ServiceDiscoveryConfig
Pythonaws_cdk.aws_appmesh.ServiceDiscoveryConfig
TypeScript (source)aws-cdk-lib » aws_appmesh » ServiceDiscoveryConfig

Obtainable from ServiceDiscovery.bind()

Properties for VirtualNode Service Discovery.

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 serviceDiscoveryConfig: appmesh.ServiceDiscoveryConfig = {
  cloudmap: {
    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
cloudmap?AwsCloudMapServiceDiscoveryPropertyCloud Map based Service Discovery.
dns?DnsServiceDiscoveryPropertyDNS based Service Discovery.

cloudmap?

Type: AwsCloudMapServiceDiscoveryProperty (optional, default: no Cloud Map based service discovery)

Cloud Map based Service Discovery.


dns?

Type: DnsServiceDiscoveryProperty (optional, default: no DNS based service discovery)

DNS based Service Discovery.