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();
 
  • Method Details

    • getHostName

      @Stability(Stable) @NotNull String getHostName()
      Name of the host where requests are redirected.
    • getProtocol

      @Stability(Stable) @Nullable default RedirectProtocol getProtocol()
      Protocol to use when redirecting requests.

      Default: - The protocol used in the original request.

    • builder

      @Stability(Stable) static RedirectTarget.Builder builder()
      Returns:
      a RedirectTarget.Builder of RedirectTarget