Class VirtualRouterListener

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.VirtualRouterListener
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:38.721Z") @Stability(Stable) public abstract class VirtualRouterListener extends software.amazon.jsii.JsiiObject
Represents the properties needed to define listeners for a VirtualRouter.

Example:

 Mesh mesh;
 VirtualRouter router = mesh.addVirtualRouter("router", VirtualRouterBaseProps.builder()
         .listeners(List.of(VirtualRouterListener.http(8080)))
         .build());
 
  • Constructor Details

    • VirtualRouterListener

      protected VirtualRouterListener(software.amazon.jsii.JsiiObjectRef objRef)
    • VirtualRouterListener

      protected VirtualRouterListener(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • VirtualRouterListener

      @Stability(Stable) protected VirtualRouterListener()
  • Method Details

    • grpc

      @Stability(Stable) @NotNull public static VirtualRouterListener grpc(@Nullable Number port)
      Returns a GRPC Listener for a VirtualRouter.

      Parameters:
      port - the optional port of the listener, 8080 by default.
    • grpc

      @Stability(Stable) @NotNull public static VirtualRouterListener grpc()
      Returns a GRPC Listener for a VirtualRouter.
    • http

      @Stability(Stable) @NotNull public static VirtualRouterListener http(@Nullable Number port)
      Returns an HTTP Listener for a VirtualRouter.

      Parameters:
      port - the optional port of the listener, 8080 by default.
    • http

      @Stability(Stable) @NotNull public static VirtualRouterListener http()
      Returns an HTTP Listener for a VirtualRouter.
    • http2

      @Stability(Stable) @NotNull public static VirtualRouterListener http2(@Nullable Number port)
      Returns an HTTP2 Listener for a VirtualRouter.

      Parameters:
      port - the optional port of the listener, 8080 by default.
    • http2

      @Stability(Stable) @NotNull public static VirtualRouterListener http2()
      Returns an HTTP2 Listener for a VirtualRouter.
    • tcp

      @Stability(Stable) @NotNull public static VirtualRouterListener tcp(@Nullable Number port)
      Returns a TCP Listener for a VirtualRouter.

      Parameters:
      port - the optional port of the listener, 8080 by default.
    • tcp

      @Stability(Stable) @NotNull public static VirtualRouterListener tcp()
      Returns a TCP Listener for a VirtualRouter.
    • bind

      @Stability(Stable) @NotNull public abstract VirtualRouterListenerConfig bind(@NotNull software.constructs.Construct scope)
      Called when the VirtualRouterListener type is initialized.

      Can be used to enforce mutual exclusivity

      Parameters:
      scope - This parameter is required.