Interface RoutingRule

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-24T02:42:44.101Z") @Stability(Stable) public interface RoutingRule extends
Rule that define when a redirect is applied and the redirect behavior.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ReplaceKey replaceKey;
 RoutingRule routingRule = RoutingRule.builder()

See Also:
  • Method Details

    • getCondition

      @Stability(Stable) @Nullable default RoutingRuleCondition getCondition()
      Specifies a condition that must be met for the specified redirect to apply.

      Default: - No condition

    • getHostName

      @Stability(Stable) @Nullable default String getHostName()
      The host name to use in the redirect request.

      Default: - The host name used in the original request.

    • getHttpRedirectCode

      @Stability(Stable) @Nullable default String getHttpRedirectCode()
      The HTTP redirect code to use on the response.

      Default: "301" - Moved Permanently

    • getProtocol

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

      Default: - The protocol used in the original request.

    • getReplaceKey

      @Stability(Stable) @Nullable default ReplaceKey getReplaceKey()
      Specifies the object key prefix to use in the redirect request.

      Default: - The key will not be replaced

    • builder

      @Stability(Stable) static RoutingRule.Builder builder()
      a RoutingRule.Builder of RoutingRule