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.97.0 (build 729de35)", date="2024-04-24T21:00:25.415Z") @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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Backend(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Backend(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract BackendConfig
    bind(software.constructs.Construct _scope)
    Return backend config.
    static Backend
    Construct a Virtual Service backend.
    static Backend
    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

      @Stability(Stable) @NotNull public abstract BackendConfig bind(@NotNull software.constructs.Construct _scope)
      Return backend config.

      Parameters:
      _scope - This parameter is required.