AWS::Amplify::App CustomRule
The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies. Redirects enable a web app to reroute navigation from one URL to another.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
Properties
Condition
-
The condition for a URL rewrite or redirect rule, such as a country code.
Required: No
Type: String
Update requires: No interruption
Source
-
The source pattern for a URL rewrite or redirect rule.
Required: Yes
Type: String
Update requires: No interruption
Status
-
The status code for a URL rewrite or redirect rule.
Required: No
Type: String
Update requires: No interruption
Target
-
The target pattern for a URL rewrite or redirect rule.
Required: Yes
Type: String
Update requires: No interruption