HttpGatewayRoutePathMatchConfig Struct
The type returned from the bind() method in HttpGatewayRoutePathMatch.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const httpGatewayRoutePathMatchConfig: appmesh.HttpGatewayRoutePathMatchConfig = {
prefixPathMatch: 'prefixPathMatch',
prefixPathRewrite: {
defaultPrefix: 'defaultPrefix',
value: 'value',
},
wholePathMatch: {
exact: 'exact',
regex: 'regex',
},
wholePathRewrite: {
exact: 'exact',
},
};
Properties
prefixPathMatchoptionalstringprefix_path_matchoptionalstrprefixPathMatchoptionalStringPrefixPathMatchoptionalstringPrefixPathMatchoptional*string#Gateway route configuration for matching on the prefix of the URL path of the request.
Default: no matching will be performed on the prefix of the URL path
prefixPathRewriteoptionalCfnGatewayRoute.HttpGatewayRoutePrefixRewritePropertyprefix_path_rewriteoptionalHttpGatewayRoutePrefixRewritePropertyprefixPathRewriteoptionalHttpGatewayRoutePrefixRewritePropertyPrefixPathRewriteoptionalHttpGatewayRoutePrefixRewritePropertyPrefixPathRewriteoptionalHttpGatewayRoutePrefixRewriteProperty#Gateway route configuration for rewriting the prefix of the URL path of the request.
Default: rewrites the request's URL path to '/'
wholePathMatchoptionalCfnGatewayRoute.HttpPathMatchPropertywhole_path_matchoptionalHttpPathMatchPropertywholePathMatchoptionalHttpPathMatchPropertyWholePathMatchoptionalHttpPathMatchPropertyWholePathMatchoptionalHttpPathMatchProperty#Gateway route configuration for matching on the complete URL path of the request.
Default: no matching will be performed on the complete URL path
wholePathRewriteoptionalCfnGatewayRoute.HttpGatewayRoutePathRewritePropertywhole_path_rewriteoptionalHttpGatewayRoutePathRewritePropertywholePathRewriteoptionalHttpGatewayRoutePathRewritePropertyWholePathRewriteoptionalHttpGatewayRoutePathRewritePropertyWholePathRewriteoptionalHttpGatewayRoutePathRewriteProperty#Gateway route configuration for rewriting the complete URL path of the request..
Default: no rewrite will be performed on the request's complete URL path