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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    (experimental) A fluent builder for CustomRule.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CustomRule
    (experimental) Sets up a 200 rewrite for all paths to index.html except for path containing a file extension.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    CustomRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    CustomRule(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (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