Interface LifecycleHookAction.Builder

  • Method Details

    • httpPost

      Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.

      Parameters:
      httpPost - Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • httpPost

      Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.

      This is a convenience method that creates an instance of the HttpPostLifecycleHookAction.Builder avoiding the need to create one manually via HttpPostLifecycleHookAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to httpPost(HttpPostLifecycleHookAction).

      Parameters:
      httpPost - a consumer that will call methods on HttpPostLifecycleHookAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: