@Stability(value=Stable)
public static interface CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty
extends software.amazon.jsii.JsiiSerializable
AWS Cloud Map is not available in the eu-south-1 Region.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;
AwsCloudMapServiceDiscoveryProperty awsCloudMapServiceDiscoveryProperty = AwsCloudMapServiceDiscoveryProperty.builder()
.namespaceName("namespaceName")
.serviceName("serviceName")
// the properties below are optional
.attributes(List.of(AwsCloudMapInstanceAttributeProperty.builder()
.key("key")
.value("value")
.build()))
.ipPreference("ipPreference")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty.Builder
A builder for
CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty |
static class |
CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty.Jsii$Proxy
An implementation for
CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty.Builder |
builder() |
default Object |
getAttributes()
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.
|
default String |
getIpPreference()
The preferred IP version that this virtual node uses.
|
String |
getNamespaceName()
The name of the AWS Cloud Map namespace to use.
|
String |
getServiceName()
The name of the AWS Cloud Map service to use.
|
@Stability(value=Stable) @NotNull String getNamespaceName()
@Stability(value=Stable) @NotNull String getServiceName()
@Stability(value=Stable) @Nullable default Object getAttributes()
Only instances that match all of the specified key/value pairs will be returned.
@Stability(value=Stable) @Nullable default String getIpPreference()
Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
@Stability(value=Stable) static CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty.Builder builder()
Copyright © 2022. All rights reserved.