Interface VirtualNodeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,VirtualNodeBaseProps
- All Known Implementing Classes:
VirtualNodeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:14.522Z")
@Stability(Stable)
public interface VirtualNodeProps
extends software.amazon.jsii.JsiiSerializable, VirtualNodeBaseProps
The properties used when creating a new VirtualNode.
Example:
Mesh mesh;
Service service;
VirtualNode node = VirtualNode.Builder.create(this, "node")
.mesh(mesh)
.serviceDiscovery(ServiceDiscovery.cloudMap(service))
.listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder()
.port(8080)
.healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
.healthyThreshold(3)
.interval(Duration.seconds(5))
.path("/ping")
.timeout(Duration.seconds(2))
.unhealthyThreshold(2)
.build()))
.timeout(HttpTimeout.builder()
.idle(Duration.seconds(5))
.build())
.build())))
.backendDefaults(BackendDefaults.builder()
.tlsClientPolicy(TlsClientPolicy.builder()
.validation(TlsValidation.builder()
.trust(TlsValidationTrust.file("/keys/local_cert_chain.pem"))
.build())
.build())
.build())
.accessLog(AccessLog.fromFilePath("/dev/stdout"))
.build();
Tags.of(node).add("Environment", "Dev");
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVirtualNodePropsstatic final classAn implementation forVirtualNodeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNodeProps.Builderbuilder()getMesh()The Mesh which the VirtualNode belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.appmesh.VirtualNodeBaseProps
getAccessLog, getBackendDefaults, getBackends, getListeners, getServiceDiscovery, getVirtualNodeName
-
Method Details
-
getMesh
The Mesh which the VirtualNode belongs to. -
builder
- Returns:
- a
VirtualNodeProps.BuilderofVirtualNodeProps
-