Class CustomRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.amplify.CustomRule
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.131Z")
@Stability(Experimental)
public class CustomRule
extends software.amazon.jsii.JsiiObject
(experimental) Custom rewrite/redirect rule for an Amplify App.
Example:
App amplifyApp; amplifyApp.addCustomRule(Map.of( "source", "/docs/specific-filename.html", "target", "/documents/different-filename.html", "status", RedirectStatus.TEMPORARY_REDIRECT));
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forCustomRule
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CustomRule
(experimental) Sets up a 200 rewrite for all paths toindex.html
except for path containing a file extension. -
Constructor Summary
ModifierConstructorDescriptionCustomRule
(CustomRuleOptions options) protected
CustomRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CustomRule
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescription(experimental) The condition for a URL rewrite or redirect rule, e.g.(experimental) The source pattern for a URL rewrite or redirect rule.(experimental) The status code for a URL rewrite or redirect rule.(experimental) The target pattern for a URL rewrite or redirect rule.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
SINGLE_PAGE_APPLICATION_REDIRECT
(experimental) Sets up a 200 rewrite for all paths toindex.html
except for path containing a file extension.
-
-
Constructor Details
-
CustomRule
protected CustomRule(software.amazon.jsii.JsiiObjectRef objRef) -
CustomRule
protected CustomRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CustomRule
- Parameters:
options
- This parameter is required.
-
-
Method Details
-
getSource
(experimental) The source pattern for a URL rewrite or redirect rule.- See Also:
-
getTarget
(experimental) The target pattern for a URL rewrite or redirect rule.- See Also:
-
getCondition
(experimental) The condition for a URL rewrite or redirect rule, e.g. country code.Default: - no condition
- See Also:
-
getStatus
(experimental) The status code for a URL rewrite or redirect rule.Default: PERMANENT_REDIRECT
- See Also:
-