Show / Hide Table of Contents

Class CfnGatewayRoute.HttpGatewayRouteProperty

An object that represents an HTTP gateway route.

Inheritance
System.Object
CfnGatewayRoute.HttpGatewayRouteProperty
Implements
CfnGatewayRoute.IHttpGatewayRouteProperty
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public class HttpGatewayRouteProperty : Object, CfnGatewayRoute.IHttpGatewayRouteProperty
Syntax (vb)
Public Class HttpGatewayRouteProperty
    Inherits Object
    Implements CfnGatewayRoute.IHttpGatewayRouteProperty
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroute.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.AppMesh;

var httpGatewayRouteProperty = new HttpGatewayRouteProperty {
    Action = new HttpGatewayRouteActionProperty {
        Target = new GatewayRouteTargetProperty {
            VirtualService = new GatewayRouteVirtualServiceProperty {
                VirtualServiceName = "virtualServiceName"
            },

            // the properties below are optional
            Port = 123
        },

        // the properties below are optional
        Rewrite = new HttpGatewayRouteRewriteProperty {
            Hostname = new GatewayRouteHostnameRewriteProperty {
                DefaultTargetHostname = "defaultTargetHostname"
            },
            Path = new HttpGatewayRoutePathRewriteProperty {
                Exact = "exact"
            },
            Prefix = new HttpGatewayRoutePrefixRewriteProperty {
                DefaultPrefix = "defaultPrefix",
                Value = "value"
            }
        }
    },
    Match = new HttpGatewayRouteMatchProperty {
        Headers = new [] { new HttpGatewayRouteHeaderProperty {
            Name = "name",

            // the properties below are optional
            Invert = false,
            Match = new HttpGatewayRouteHeaderMatchProperty {
                Exact = "exact",
                Prefix = "prefix",
                Range = new GatewayRouteRangeMatchProperty {
                    End = 123,
                    Start = 123
                },
                Regex = "regex",
                Suffix = "suffix"
            }
        } },
        Hostname = new GatewayRouteHostnameMatchProperty {
            Exact = "exact",
            Suffix = "suffix"
        },
        Method = "method",
        Path = new HttpPathMatchProperty {
            Exact = "exact",
            Regex = "regex"
        },
        Port = 123,
        Prefix = "prefix",
        QueryParameters = new [] { new QueryParameterProperty {
            Name = "name",

            // the properties below are optional
            Match = new HttpQueryParameterMatchProperty {
                Exact = "exact"
            }
        } }
    }
};

Synopsis

Constructors

HttpGatewayRouteProperty()

Properties

Action

An object that represents the action to take if a match is determined.

Match

An object that represents the criteria for determining a request match.

Constructors

HttpGatewayRouteProperty()

public HttpGatewayRouteProperty()

Properties

Action

An object that represents the action to take if a match is determined.

public object Action { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroute.html#cfn-appmesh-gatewayroute-httpgatewayroute-action

Match

An object that represents the criteria for determining a request match.

public object Match { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroute.html#cfn-appmesh-gatewayroute-httpgatewayroute-match

Implements

CfnGatewayRoute.IHttpGatewayRouteProperty
Back to top Generated by DocFX