Interface RedirectTarget
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RedirectTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:04.746Z")
@Stability(Stable)
public interface RedirectTarget
extends software.amazon.jsii.JsiiSerializable
Specifies a redirect behavior of all requests to a website endpoint of a bucket.
Example:
Bucket bucket = Bucket.Builder.create(this, "MyRedirectedBucket") .websiteRedirect(RedirectTarget.builder().hostName("www.example.com").build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRedirectTarget
static final class
An implementation forRedirectTarget
-
Method Summary
Modifier and TypeMethodDescriptionstatic RedirectTarget.Builder
builder()
Name of the host where requests are redirected.default RedirectProtocol
Protocol to use when redirecting requests.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHostName
Name of the host where requests are redirected. -
getProtocol
Protocol to use when redirecting requests.Default: - The protocol used in the original request.
-
builder
- Returns:
- a
RedirectTarget.Builder
ofRedirectTarget
-