Interface RedirectTarget

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.714Z") @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