Interface ServiceDiscoveryConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServiceDiscoveryConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:34.308Z")
@Stability(Stable)
public interface ServiceDiscoveryConfig
extends software.amazon.jsii.JsiiSerializable
Properties for VirtualNode Service Discovery.
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.*;
ServiceDiscoveryConfig serviceDiscoveryConfig = ServiceDiscoveryConfig.builder()
.cloudmap(AwsCloudMapServiceDiscoveryProperty.builder()
.namespaceName("namespaceName")
.serviceName("serviceName")
// the properties below are optional
.attributes(List.of(AwsCloudMapInstanceAttributeProperty.builder()
.key("key")
.value("value")
.build()))
.ipPreference("ipPreference")
.build())
.dns(DnsServiceDiscoveryProperty.builder()
.hostname("hostname")
// the properties below are optional
.ipPreference("ipPreference")
.responseType("responseType")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forServiceDiscoveryConfigstatic final classAn implementation forServiceDiscoveryConfig -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCloudmap
@Stability(Stable) @Nullable default CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty getCloudmap()Cloud Map based Service Discovery.Default: - no Cloud Map based service discovery
-
getDns
DNS based Service Discovery.Default: - no DNS based service discovery
-
builder
- Returns:
- a
ServiceDiscoveryConfig.BuilderofServiceDiscoveryConfig
-