Show / Hide Table of Contents

Class CfnGatewayRoute.HttpGatewayRouteProperty

An object that represents an HTTP gateway route.

Inheritance
object
CfnGatewayRoute.HttpGatewayRouteProperty
Implements
CfnGatewayRoute.IHttpGatewayRouteProperty
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.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGatewayRoute.HttpGatewayRouteProperty : CfnGatewayRoute.IHttpGatewayRouteProperty
Syntax (vb)
Public Class CfnGatewayRoute.HttpGatewayRouteProperty Implements CfnGatewayRoute.IHttpGatewayRouteProperty
Remarks

See: 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()

An object that represents an HTTP gateway route.

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()

An object that represents an HTTP gateway route.

public HttpGatewayRouteProperty()
Remarks

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

Properties

Action

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

public object Action { get; set; }
Property Value

object

Remarks

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

Type union: either IResolvable or CfnGatewayRoute.IHttpGatewayRouteActionProperty

Match

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

public object Match { get; set; }
Property Value

object

Remarks

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

Type union: either IResolvable or CfnGatewayRoute.IHttpGatewayRouteMatchProperty

Implements

CfnGatewayRoute.IHttpGatewayRouteProperty
Back to top Generated by DocFX