HttpGatewayRoutePathMatchConfig
- class aws_cdk.aws_appmesh.HttpGatewayRoutePathMatchConfig(*, prefix_path_match=None, prefix_path_rewrite=None, whole_path_match=None, whole_path_rewrite=None)
Bases:
object
The type returned from the
bind()
method in {@link HttpGatewayRoutePathMatch}.- Parameters:
prefix_path_match (
Optional
[str
]) – 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 pathprefix_path_rewrite (
Union
[HttpGatewayRoutePrefixRewriteProperty
,Dict
[str
,Any
],None
]) – Gateway route configuration for rewriting the prefix of the URL path of the request. Default: - rewrites the request’s URL path to ‘/’whole_path_match (
Union
[HttpPathMatchProperty
,Dict
[str
,Any
],None
]) – Gateway route configuration for matching on the complete URL path of the request. Default: - no matching will be performed on the complete URL pathwhole_path_rewrite (
Union
[HttpGatewayRoutePathRewriteProperty
,Dict
[str
,Any
],None
]) – 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
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_appmesh as appmesh http_gateway_route_path_match_config = appmesh.HttpGatewayRoutePathMatchConfig( prefix_path_match="prefixPathMatch", prefix_path_rewrite=appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty( default_prefix="defaultPrefix", value="value" ), whole_path_match=appmesh.CfnGatewayRoute.HttpPathMatchProperty( exact="exact", regex="regex" ), whole_path_rewrite=appmesh.CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty( exact="exact" ) )
Attributes
- prefix_path_match
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
- prefix_path_rewrite
Gateway route configuration for rewriting the prefix of the URL path of the request.
- Default:
rewrites the request’s URL path to ‘/’
- whole_path_match
Gateway route configuration for matching on the complete URL path of the request.
- Default:
no matching will be performed on the complete URL path
- whole_path_rewrite
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