Interface RedirectTarget

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.714Z") @Stability(Stable) public interface RedirectTarget extends
Specifies a redirect behavior of all requests to a website endpoint of a bucket.


 Bucket bucket = Bucket.Builder.create(this, "MyRedirectedBucket")
  • 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()
      a RedirectTarget.Builder of RedirectTarget