Class CfnVirtualNode.ServiceDiscoveryProperty
An object that represents the service discovery information for a virtual node.
Inheritance
System.Object
CfnVirtualNode.ServiceDiscoveryProperty
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServiceDiscoveryProperty : Object, CfnVirtualNode.IServiceDiscoveryProperty
Syntax (vb)
Public Class ServiceDiscoveryProperty
Inherits Object
Implements CfnVirtualNode.IServiceDiscoveryProperty
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 serviceDiscoveryProperty = new ServiceDiscoveryProperty {
AwsCloudMap = 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
ServiceDiscoveryProperty() |
Properties
AwsCloudMap | Specifies any AWS Cloud Map information for the virtual node. |
Dns | Specifies the DNS information for the virtual node. |
Constructors
ServiceDiscoveryProperty()
public ServiceDiscoveryProperty()
Properties
AwsCloudMap
Specifies any AWS Cloud Map information for the virtual node.
public object AwsCloudMap { get; set; }
Property Value
System.Object
Remarks
Dns
Specifies the DNS information for the virtual node.
public object Dns { get; set; }
Property Value
System.Object