Interface ICustomRuleOptions
(experimental) Options for a custom rewrite/redirect rule for an Amplify App.
Namespace: Amazon.CDK.AWS.Amplify
Assembly: Amazon.CDK.AWS.Amplify.dll
Syntax (csharp)
public interface ICustomRuleOptions
Syntax (vb)
Public Interface ICustomRuleOptions
Remarks
Stability: Experimental
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 customRuleOptions = new CustomRuleOptions {
Source = "source",
Target = "target",
// the properties below are optional
Condition = "condition",
Status = RedirectStatus.REWRITE
};
Synopsis
Properties
Condition | (experimental) The condition for a URL rewrite or redirect rule, e.g. country code. |
Source | (experimental) The source pattern for a URL rewrite or redirect rule. |
Status | (experimental) The status code for a URL rewrite or redirect rule. |
Target | (experimental) The target pattern for a URL rewrite or redirect rule. |
Properties
Condition
(experimental) The condition for a URL rewrite or redirect rule, e.g. country code.
virtual string Condition { get; }
Property Value
System.String
Remarks
Default: - no condition
Stability: Experimental
See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html
Source
(experimental) The source pattern for a URL rewrite or redirect rule.
string Source { get; }
Property Value
System.String
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html
Status
(experimental) The status code for a URL rewrite or redirect rule.
virtual Nullable<RedirectStatus> Status { get; }
Property Value
System.Nullable<RedirectStatus>
Remarks
Default: PERMANENT_REDIRECT
Stability: Experimental
See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html
Target
(experimental) The target pattern for a URL rewrite or redirect rule.
string Target { get; }
Property Value
System.String
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html