Interface CfnApp.ICustomRuleProperty
The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies.
Namespace: Amazon.CDK.AWS.Amplify
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnApp.ICustomRuleProperty
Syntax (vb)
Public Interface CfnApp.ICustomRuleProperty
Remarks
Redirects enable a web app to reroute navigation from one URL to another.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Amplify;
var customRuleProperty = new CustomRuleProperty {
Source = "source",
Target = "target",
// the properties below are optional
Condition = "condition",
Status = "status"
};
Synopsis
Properties
| Condition | The condition for a URL rewrite or redirect rule, such as a country code. |
| Source | The source pattern for a URL rewrite or redirect rule. |
| Status | The status code for a URL rewrite or redirect rule. |
| Target | The target pattern for a URL rewrite or redirect rule. |
Properties
Condition
The condition for a URL rewrite or redirect rule, such as a country code.
string? Condition { get; }
Property Value
Remarks
Source
The source pattern for a URL rewrite or redirect rule.
string Source { get; }
Property Value
Remarks
Status
The status code for a URL rewrite or redirect rule.
string? Status { get; }
Property Value
Remarks
Target
The target pattern for a URL rewrite or redirect rule.
string Target { get; }