Class Backend
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.Backend
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.759Z")
@Stability(Stable)
public abstract class Backend
extends software.amazon.jsii.JsiiObject
Contains static factory methods to create backends.
Example:
Mesh mesh; VirtualRouter router; 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()))) .accessLog(AccessLog.fromFilePath("/dev/stdout")) .build(); VirtualService virtualService = VirtualService.Builder.create(this, "service-1") .virtualServiceProvider(VirtualServiceProvider.virtualRouter(router)) .virtualServiceName("service1.domain.local") .build(); node.addBackend(Backend.virtualService(virtualService));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract BackendConfig
Return backend config.static Backend
virtualService
(IVirtualService virtualService) Construct a Virtual Service backend.static Backend
virtualService
(IVirtualService virtualService, VirtualServiceBackendOptions props) Construct a Virtual Service backend.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Backend
protected Backend(software.amazon.jsii.JsiiObjectRef objRef) -
Backend
protected Backend(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Backend
@Stability(Stable) protected Backend()
-
-
Method Details
-
virtualService
@Stability(Stable) @NotNull public static Backend virtualService(@NotNull IVirtualService virtualService, @Nullable VirtualServiceBackendOptions props) Construct a Virtual Service backend.- Parameters:
virtualService
- This parameter is required.props
-
-
virtualService
@Stability(Stable) @NotNull public static Backend virtualService(@NotNull IVirtualService virtualService) Construct a Virtual Service backend.- Parameters:
virtualService
- This parameter is required.
-
bind
Return backend config.- Parameters:
_scope
- This parameter is required.
-