Interface VirtualNodeBaseProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
VirtualNodeProps
- All Known Implementing Classes:
VirtualNodeBaseProps.Jsii$Proxy
,VirtualNodeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:10.197Z")
@Stability(Stable)
public interface VirtualNodeBaseProps
extends software.amazon.jsii.JsiiSerializable
Basic configuration properties for a VirtualNode.
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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVirtualNodeBaseProps
static final class
An implementation forVirtualNodeBaseProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNodeBaseProps.Builder
builder()
default AccessLog
Access Logging Configuration for the virtual node.default BackendDefaults
Default Configuration Virtual Node uses to communicate with Virtual Service.Virtual Services that this is node expected to send outbound traffic to.default List<VirtualNodeListener>
Initial listener for the virtual node.default ServiceDiscovery
Defines how upstream clients will discover this VirtualNode.default String
The name of the VirtualNode.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessLog
Access Logging Configuration for the virtual node.Default: - No access logging
-
getBackendDefaults
Default Configuration Virtual Node uses to communicate with Virtual Service.Default: - No Config
-
getBackends
Virtual Services that this is node expected to send outbound traffic to.Default: - No backends
-
getListeners
Initial listener for the virtual node.Default: - No listeners
-
getServiceDiscovery
Defines how upstream clients will discover this VirtualNode.Default: - No Service Discovery
-
getVirtualNodeName
The name of the VirtualNode.Default: - A name is automatically determined
-
builder
- Returns:
- a
VirtualNodeBaseProps.Builder
ofVirtualNodeBaseProps
-