@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.453Z") @Stability(value=Experimental) 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()
(experimental) Cloud Map based Service Discovery.
|
default CfnVirtualNode.DnsServiceDiscoveryProperty |
getDns()
(experimental) DNS based Service Discovery.
|
@Stability(value=Experimental) @Nullable default CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty getCloudmap()
Default: - no Cloud Map based service discovery
@Stability(value=Experimental) @Nullable default CfnVirtualNode.DnsServiceDiscoveryProperty getDns()
Default: - no DNS based service discovery
@Stability(value=Experimental) static ServiceDiscoveryConfig.Builder builder()
ServiceDiscoveryConfig.Builder of ServiceDiscoveryConfigCopyright © 2022. All rights reserved.