@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.574Z") @Stability(value=Stable) public interface ServiceDiscoveryConfig extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServiceDiscoveryConfig.Builder
A builder for
ServiceDiscoveryConfig |
static class |
ServiceDiscoveryConfig.Jsii$Proxy
An implementation for
ServiceDiscoveryConfig |
| Modifier and Type | Method and Description |
|---|---|
static ServiceDiscoveryConfig.Builder |
builder() |
default CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty |
getCloudmap()
Cloud Map based Service Discovery.
|
default CfnVirtualNode.DnsServiceDiscoveryProperty |
getDns()
DNS based Service Discovery.
|
@Stability(value=Stable) @Nullable default CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty getCloudmap()
Default: - no Cloud Map based service discovery
@Stability(value=Stable) @Nullable default CfnVirtualNode.DnsServiceDiscoveryProperty getDns()
Default: - no DNS based service discovery
@Stability(value=Stable) static ServiceDiscoveryConfig.Builder builder()
ServiceDiscoveryConfig.Builder of ServiceDiscoveryConfigCopyright © 2022. All rights reserved.