Interface VirtualNodeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,VirtualNodeBaseProps
- All Known Implementing Classes:
VirtualNodeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:11.329Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVirtualNodeProps
static final class
An implementation forVirtualNodeProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNodeProps.Builder
builder()
getMesh()
The Mesh which the VirtualNode belongs to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods 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.Builder
ofVirtualNodeProps
-