Class Handler

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.65.0 (build 7a02b7f)",
               date="2022-08-21T02:57:21.402Z")
    @Stability(Stable)
    public class Handler
    extends software.amazon.jsii.JsiiObject
    Defines a specific action that should be taken.
    • 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 Handler​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected Handler​(software.amazon.jsii.JsiiObjectRef objRef)  
    • Constructor Detail

      • Handler

        protected Handler​(software.amazon.jsii.JsiiObjectRef objRef)
      • Handler

        protected Handler​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Method Detail

      • fromCommand

        @Stability(Stable)
        @NotNull
        public static Handler fromCommand​(@NotNull
                                          List<String> command)
        Defines a handler based on a command which is executed within the container.

        Parameters:
        command - The command to execute. This parameter is required.
      • fromHttpGet

        @Stability(Stable)
        @NotNull
        public static Handler fromHttpGet​(@NotNull
                                          String path,
                                          @Nullable
                                          HandlerFromHttpGetOptions options)
        Defines a handler based on an HTTP GET request to the IP address of the container.

        Parameters:
        path - The URL path to hit. This parameter is required.
        options - Options.
      • fromHttpGet

        @Stability(Stable)
        @NotNull
        public static Handler fromHttpGet​(@NotNull
                                          String path)
        Defines a handler based on an HTTP GET request to the IP address of the container.

        Parameters:
        path - The URL path to hit. This parameter is required.
      • fromTcpSocket

        @Stability(Stable)
        @NotNull
        public static Handler fromTcpSocket​(@Nullable
                                            HandlerFromTcpSocketOptions options)
        Defines a handler based opening a connection to a TCP socket on the container.

        Parameters:
        options - Options.
      • fromTcpSocket

        @Stability(Stable)
        @NotNull
        public static Handler fromTcpSocket()
        Defines a handler based opening a connection to a TCP socket on the container.