Interface PrivateDnsNamespaceProps
- All Superinterfaces:
BaseNamespaceProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PrivateDnsNamespaceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.659Z")
@Stability(Stable)
public interface PrivateDnsNamespaceProps
extends software.amazon.jsii.JsiiSerializable, BaseNamespaceProps
Example:
Mesh mesh; // Cloud Map service discovery is currently required for host ejection by outlier detection Vpc vpc = new Vpc(this, "vpc"); PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "test-namespace") .vpc(vpc) .name("domain.local") .build(); Service service = namespace.createService("Svc"); VirtualNode node = mesh.addVirtualNode("virtual-node", VirtualNodeBaseProps.builder() .serviceDiscovery(ServiceDiscovery.cloudMap(service)) .listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder() .outlierDetection(OutlierDetection.builder() .baseEjectionDuration(Duration.seconds(10)) .interval(Duration.seconds(30)) .maxEjectionPercent(50) .maxServerErrors(5) .build()) .build()))) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forPrivateDnsNamespaceProps
static final class
An implementation forPrivateDnsNamespaceProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseNamespaceProps
getDescription, getName
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
The Amazon VPC that you want to associate the namespace with. -
builder
- Returns:
- a
PrivateDnsNamespaceProps.Builder
ofPrivateDnsNamespaceProps
-