Show / Hide Table of Contents

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html

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

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-condition

Source

The source pattern for a URL rewrite or redirect rule.

string Source { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-source

Status

The status code for a URL rewrite or redirect rule.

string? Status { get; }
Property Value

string

Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-status

    Target

    The target pattern for a URL rewrite or redirect rule.

    string Target { get; }
    Property Value

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplify-app-customrule.html#cfn-amplify-app-customrule-target

    Back to top Generated by DocFX