interface ServiceDiscoveryConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.ServiceDiscoveryConfig |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#ServiceDiscoveryConfig |
Java | software.amazon.awscdk.services.appmesh.ServiceDiscoveryConfig |
Python | aws_cdk.aws_appmesh.ServiceDiscoveryConfig |
TypeScript (source) | aws-cdk-lib » aws_appmesh » ServiceDiscoveryConfig |
Obtainable from
Service
.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
Name | Type | Description |
---|---|---|
cloudmap? | Aws | Cloud Map based Service Discovery. |
dns? | Dns | DNS based Service Discovery. |
cloudmap?
Type:
Aws
(optional, default: no Cloud Map based service discovery)
Cloud Map based Service Discovery.
dns?
Type:
Dns
(optional, default: no DNS based service discovery)
DNS based Service Discovery.