package awsappmesh // The criterion for determining a request match for this Route. // // Example: // var router virtualRouter // var node virtualNode // // // router.addRoute(jsii.String("route-http"), &RouteBaseProps{ // RouteSpec: appmesh.RouteSpec_Http(&HttpRouteSpecOptions{ // WeightedTargets: []weightedTarget{ // &weightedTarget{ // VirtualNode: node, // Weight: jsii.Number(50), // }, // &weightedTarget{ // VirtualNode: node, // Weight: jsii.Number(50), // }, // }, // Match: &HttpRouteMatch{ // Path: appmesh.HttpRoutePathMatch_StartsWith(jsii.String("/path-to-app")), // }, // }), // }) // type HttpRouteMatch struct { // Specifies the client request headers to match on. // // All specified headers // must match for the route to match. Headers *[]HeaderMatch `field:"optional" json:"headers" yaml:"headers"` // The HTTP client request method to match on. Method HttpRouteMethod `field:"optional" json:"method" yaml:"method"` // Specifies how is the request matched based on the path part of its URL. Path HttpRoutePathMatch `field:"optional" json:"path" yaml:"path"` // The port to match from the request. Port *float64 `field:"optional" json:"port" yaml:"port"` // The client request protocol to match on. // // Applicable only for HTTP2 routes. Protocol HttpRouteProtocol `field:"optional" json:"protocol" yaml:"protocol"` // The query parameters to match on. // // All specified query parameters must match for the route to match. QueryParameters *[]QueryParameterMatch `field:"optional" json:"queryParameters" yaml:"queryParameters"` }