@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:43.129Z") @Stability(value=Experimental) public enum RedirectStatus extends Enum<RedirectStatus>
Example:
App amplifyApp;
amplifyApp.addCustomRule(Map.of(
"source", "/docs/specific-filename.html",
"target", "/documents/different-filename.html",
"status", RedirectStatus.TEMPORARY_REDIRECT));
| Enum Constant and Description |
|---|
NOT_FOUND
(experimental) Not found (404).
|
NOT_FOUND_REWRITE
(experimental) Not found rewrite (404).
|
PERMANENT_REDIRECT
(experimental) Permanent redirect (301).
|
REWRITE
(experimental) Rewrite (200).
|
TEMPORARY_REDIRECT
(experimental) Temporary redirect (302).
|
| Modifier and Type | Method and Description |
|---|---|
static RedirectStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedirectStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final RedirectStatus REWRITE
@Stability(value=Experimental) public static final RedirectStatus PERMANENT_REDIRECT
@Stability(value=Experimental) public static final RedirectStatus TEMPORARY_REDIRECT
@Stability(value=Experimental) public static final RedirectStatus NOT_FOUND
@Stability(value=Experimental) public static final RedirectStatus NOT_FOUND_REWRITE
public static RedirectStatus[] values()
for (RedirectStatus c : RedirectStatus.values()) System.out.println(c);
public static RedirectStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.