Enum RedirectStatus

java.lang.Object
java.lang.Enum<RedirectStatus>
software.amazon.awscdk.services.amplify.RedirectStatus
All Implemented Interfaces:
Serializable, Comparable<RedirectStatus>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.162Z") @Stability(Experimental) public enum RedirectStatus extends Enum<RedirectStatus>
(experimental) The status code for a URL rewrite or redirect rule.

Example:

 App amplifyApp;
 amplifyApp.addCustomRule(Map.of(
         "source", "/docs/specific-filename.html",
         "target", "/documents/different-filename.html",
         "status", RedirectStatus.TEMPORARY_REDIRECT));
 
  • Enum Constant Details

    • REWRITE

      @Stability(Experimental) public static final RedirectStatus REWRITE
      (experimental) Rewrite (200).
    • PERMANENT_REDIRECT

      @Stability(Experimental) public static final RedirectStatus PERMANENT_REDIRECT
      (experimental) Permanent redirect (301).
    • TEMPORARY_REDIRECT

      @Stability(Experimental) public static final RedirectStatus TEMPORARY_REDIRECT
      (experimental) Temporary redirect (302).
    • NOT_FOUND

      @Stability(Experimental) public static final RedirectStatus NOT_FOUND
      (experimental) Not found (404).
    • NOT_FOUND_REWRITE

      @Stability(Experimental) public static final RedirectStatus NOT_FOUND_REWRITE
      (experimental) Not found rewrite (404).
  • Method Details

    • values

      public static RedirectStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RedirectStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null