Class Probe

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

    @Generated(value="jsii-pacmak/1.79.0 (build b22f628)",
               date="2023-03-31T02:28:41.679Z")
    @Stability(Stable)
    public class Probe
    extends software.amazon.jsii.JsiiObject
    Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
    • 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 Probe​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected Probe​(software.amazon.jsii.JsiiObjectRef objRef)  
    • Constructor Detail

      • Probe

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

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

      • fromCommand

        @Stability(Stable)
        @NotNull
        public static Probe fromCommand​(@NotNull
                                        List<String> command,
                                        @Nullable
                                        CommandProbeOptions options)
        Defines a probe based on a command which is executed within the container.

        Parameters:
        command - The command to execute. This parameter is required.
        options - Options.
      • fromCommand

        @Stability(Stable)
        @NotNull
        public static Probe fromCommand​(@NotNull
                                        List<String> command)
        Defines a probe 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 Probe fromHttpGet​(@NotNull
                                        String path,
                                        @Nullable
                                        HttpGetProbeOptions options)
        Defines a probe 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 Probe fromHttpGet​(@NotNull
                                        String path)
        Defines a probe 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 Probe fromTcpSocket​(@Nullable
                                          TcpSocketProbeOptions options)
        Defines a probe based opening a connection to a TCP socket on the container.

        Parameters:
        options - Options.
      • fromTcpSocket

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