Show / Hide Table of Contents

Class CfnApp.CustomRuleProperty

The CustomRule property type allows you to specify redirects, rewrites, and reverse proxies.

Inheritance
object
CfnApp.CustomRuleProperty
Implements
CfnApp.ICustomRuleProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Amplify
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnApp.CustomRuleProperty : CfnApp.ICustomRuleProperty
Syntax (vb)
Public Class CfnApp.CustomRuleProperty Implements 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

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.

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"
             };

Properties

Condition

The condition for a URL rewrite or redirect rule, such as a country code.

public string? Condition { get; set; }
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.

public string Source { get; set; }
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.

public string? Status { get; set; }
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.

    public string Target { get; set; }
    Property Value

    string

    Remarks

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

    Implements

    CfnApp.ICustomRuleProperty
    Back to top Generated by DocFX