Interface CfnAppPropsMixin.CustomRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAppPropsMixin.CustomRuleProperty.Jsii$Proxy
- Enclosing class:
CfnAppPropsMixin
@Stability(Stable)
public static interface CfnAppPropsMixin.CustomRuleProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.amplify.*;
CustomRuleProperty customRuleProperty = CustomRuleProperty.builder()
.condition("condition")
.source("source")
.status("status")
.target("target")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAppPropsMixin.CustomRulePropertystatic final classAn implementation forCfnAppPropsMixin.CustomRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe condition for a URL rewrite or redirect rule, such as a country code.default StringThe source pattern for a URL rewrite or redirect rule.default StringThe status code for a URL rewrite or redirect rule.default StringThe target pattern for a URL rewrite or redirect rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCondition
The condition for a URL rewrite or redirect rule, such as a country code.- See Also:
-
getSource
The source pattern for a URL rewrite or redirect rule.- See Also:
-
getStatus
The status code for a URL rewrite or redirect rule.- 200 - Represents a 200 rewrite rule.
- 301 - Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302 - Represents a 302 temporary redirect rule.
- 404 - Represents a 404 redirect rule.
- 404-200 - Represents a 404 rewrite rule.
- See Also:
-
getTarget
The target pattern for a URL rewrite or redirect rule.- See Also:
-
builder
-