Interface RedirectTarget
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RedirectTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:19.981Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRedirectTargetstatic final classAn implementation forRedirectTarget -
Method Summary
Modifier and TypeMethodDescriptionstatic RedirectTarget.Builderbuilder()Name of the host where requests are redirected.default RedirectProtocolProtocol 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.BuilderofRedirectTarget
-