Class CfnAppPropsMixin.CustomRuleProperty
The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Amplify.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnAppPropsMixin.CustomRuleProperty : CfnAppPropsMixin.ICustomRuleProperty
Syntax (vb)
Public Class CfnAppPropsMixin.CustomRuleProperty Implements CfnAppPropsMixin.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.Mixins.Preview.AWS.Amplify.Mixins;
var customRuleProperty = new CustomRuleProperty {
Condition = "condition",
Source = "source",
Status = "status",
Target = "target"
};
Synopsis
Constructors
| CustomRuleProperty() | The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies. |
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. |
Constructors
CustomRuleProperty()
The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies.
public CustomRuleProperty()
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.Mixins.Preview.AWS.Amplify.Mixins;
var customRuleProperty = new CustomRuleProperty {
Condition = "condition",
Source = "source",
Status = "status",
Target = "target"
};
Properties
Condition
The condition for a URL rewrite or redirect rule, such as a country code.
public string? Condition { get; set; }
Property Value
Remarks
Source
The source pattern for a URL rewrite or redirect rule.
public string? Source { get; set; }
Property Value
Remarks
Status
The status code for a URL rewrite or redirect rule.
public string? Status { get; set; }
Property Value
Remarks
Target
The target pattern for a URL rewrite or redirect rule.
public string? Target { get; set; }