Interface PrivateDnsNamespaceProps
- All Superinterfaces:
BaseNamespaceProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PrivateDnsNamespaceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:38.657Z")
@Stability(Stable)
public interface PrivateDnsNamespaceProps
extends software.amazon.jsii.JsiiSerializable, BaseNamespaceProps
Example:
Mesh mesh;
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()
.port(8081)
.healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
.healthyThreshold(3)
.interval(Duration.seconds(5)) // minimum
.path("/health-check-path")
.timeout(Duration.seconds(2)) // minimum
.unhealthyThreshold(2)
.build()))
.build())))
.accessLog(AccessLog.fromFilePath("/dev/stdout"))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPrivateDnsNamespacePropsstatic final classAn implementation forPrivateDnsNamespaceProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.servicediscovery.BaseNamespaceProps
getDescription, getNameMethods 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.BuilderofPrivateDnsNamespaceProps
-