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.
(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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Deprecated.static final class
Deprecated. -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatusCode
Deprecated.(deprecated) The HTTP redirect code (HTTP_301 or HTTP_302). -
getHost
Deprecated.(deprecated) The hostname.This component is not percent-encoded. The hostname can contain #{host}.
Default: origin host of request
-
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
Deprecated.(deprecated) The port.You can specify a value from 1 to 65535 or #{port}.
Default: origin port of request
-
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
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
Deprecated.- Returns:
- a
RedirectResponse.Builder
ofRedirectResponse
-
ListenerAction.redirect()
.