Interface IServiceDiscoveryConfig
Properties for VirtualNode Service Discovery.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IServiceDiscoveryConfig
Syntax (vb)
Public Interface IServiceDiscoveryConfig
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var serviceDiscoveryConfig = new ServiceDiscoveryConfig {
Cloudmap = new AwsCloudMapServiceDiscoveryProperty {
NamespaceName = "namespaceName",
ServiceName = "serviceName",
// the properties below are optional
Attributes = new [] { new AwsCloudMapInstanceAttributeProperty {
Key = "key",
Value = "value"
} },
IpPreference = "ipPreference"
},
Dns = new DnsServiceDiscoveryProperty {
Hostname = "hostname",
// the properties below are optional
IpPreference = "ipPreference",
ResponseType = "responseType"
}
};
Synopsis
Properties
Cloudmap | Cloud Map based Service Discovery. |
Dns | DNS based Service Discovery. |
Properties
Cloudmap
Cloud Map based Service Discovery.
virtual CfnVirtualNode.IAwsCloudMapServiceDiscoveryProperty Cloudmap { get; }
Property Value
CfnVirtualNode.IAwsCloudMapServiceDiscoveryProperty
Remarks
Default: - no Cloud Map based service discovery
Dns
DNS based Service Discovery.
virtual CfnVirtualNode.IDnsServiceDiscoveryProperty Dns { get; }
Property Value
CfnVirtualNode.IDnsServiceDiscoveryProperty
Remarks
Default: - no DNS based service discovery