Class CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty
An object that represents the AWS Cloud Map service discovery information for your virtual node.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AwsCloudMapServiceDiscoveryProperty : Object, CfnVirtualNode.IAwsCloudMapServiceDiscoveryProperty
Syntax (vb)
Public Class AwsCloudMapServiceDiscoveryProperty
Inherits Object
Implements CfnVirtualNode.IAwsCloudMapServiceDiscoveryProperty
Remarks
AWS Cloud Map is not available in the eu-south-1 Region.
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 awsCloudMapServiceDiscoveryProperty = new AwsCloudMapServiceDiscoveryProperty {
NamespaceName = "namespaceName",
ServiceName = "serviceName",
// the properties below are optional
Attributes = new [] { new AwsCloudMapInstanceAttributeProperty {
Key = "key",
Value = "value"
} },
IpPreference = "ipPreference"
};
Synopsis
Constructors
AwsCloudMapServiceDiscoveryProperty() |
Properties
Attributes | A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. |
IpPreference | The preferred IP version that this virtual node uses. |
NamespaceName | The HTTP name of the AWS Cloud Map namespace to use. |
ServiceName | The name of the AWS Cloud Map service to use. |
Constructors
AwsCloudMapServiceDiscoveryProperty()
public AwsCloudMapServiceDiscoveryProperty()
Properties
Attributes
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.
public object Attributes { get; set; }
Property Value
System.Object
Remarks
Only instances that match all of the specified key/value pairs will be returned.
IpPreference
The preferred IP version that this virtual node uses.
public string IpPreference { get; set; }
Property Value
System.String
Remarks
Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
NamespaceName
The HTTP name of the AWS Cloud Map namespace to use.
public string NamespaceName { get; set; }
Property Value
System.String
Remarks
ServiceName
The name of the AWS Cloud Map service to use.
public string ServiceName { get; set; }
Property Value
System.String