Interface RedirectTarget

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
RedirectTarget.Jsii$Proxy

@Generated(value="jsii-pacmak/1.95.0 (build f1ff514)", date="2024-03-26T18:09:29.562Z") @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