Interface RedirectResponse

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
AddRedirectResponseProps
All Known Implementing Classes:
AddRedirectResponseProps.Jsii$Proxy, RedirectResponse.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.393Z") @Stability(Deprecated) @Deprecated public interface RedirectResponse extends software.amazon.jsii.JsiiSerializable
Deprecated.
superceded by ListenerAction.redirect().
(deprecated) A redirect response.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.elasticloadbalancingv2.*;
 RedirectResponse redirectResponse = RedirectResponse.builder()
         .statusCode("statusCode")
         // the properties below are optional
         .host("host")
         .path("path")
         .port("port")
         .protocol("protocol")
         .query("query")
         .build();
 

  • Method Details

    • getStatusCode

      @Stability(Deprecated) @Deprecated @NotNull String getStatusCode()
      Deprecated.
      (deprecated) The HTTP redirect code (HTTP_301 or HTTP_302).
    • getHost

      @Stability(Deprecated) @Deprecated @Nullable default String getHost()
      Deprecated.
      (deprecated) The hostname.

      This component is not percent-encoded. The hostname can contain #{host}.

      Default: origin host of request

    • getPath

      @Stability(Deprecated) @Deprecated @Nullable default String getPath()
      Deprecated.
      (deprecated) The absolute path, starting with the leading "/".

      This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.

      Default: origin path of request

    • getPort

      @Stability(Deprecated) @Deprecated @Nullable default String getPort()
      Deprecated.
      (deprecated) The port.

      You can specify a value from 1 to 65535 or #{port}.

      Default: origin port of request

    • getProtocol

      @Stability(Deprecated) @Deprecated @Nullable default String getProtocol()
      Deprecated.
      (deprecated) The protocol.

      You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.

      Default: origin protocol of request

    • getQuery

      @Stability(Deprecated) @Deprecated @Nullable default String getQuery()
      Deprecated.
      (deprecated) The query parameters, URL-encoded when necessary, but not percent-encoded.

      Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.

      Default: origin query string of request

    • builder

      @Stability(Deprecated) @Deprecated static RedirectResponse.Builder builder()
      Deprecated.
      Returns:
      a RedirectResponse.Builder of RedirectResponse