Class ServiceDiscoveryConfig
Properties for VirtualNode Service Discovery.
Inheritance
System.Object
ServiceDiscoveryConfig
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServiceDiscoveryConfig : Object, IServiceDiscoveryConfig
Syntax (vb)
Public Class ServiceDiscoveryConfig
Inherits Object
Implements 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
Constructors
ServiceDiscoveryConfig() |
Properties
Cloudmap | Cloud Map based Service Discovery. |
Dns | DNS based Service Discovery. |
Constructors
ServiceDiscoveryConfig()
public ServiceDiscoveryConfig()
Properties
Cloudmap
Cloud Map based Service Discovery.
public CfnVirtualNode.IAwsCloudMapServiceDiscoveryProperty Cloudmap { get; set; }
Property Value
CfnVirtualNode.IAwsCloudMapServiceDiscoveryProperty
Remarks
Default: - no Cloud Map based service discovery
Dns
DNS based Service Discovery.
public CfnVirtualNode.IDnsServiceDiscoveryProperty Dns { get; set; }
Property Value
CfnVirtualNode.IDnsServiceDiscoveryProperty
Remarks
Default: - no DNS based service discovery