Skip to content
v2.277.0

HttpRoutePathMatchConfig Struct ​

The type returned from the bind() method in HttpRoutePathMatch.

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 httpRoutePathMatchConfig: appmesh.HttpRoutePathMatchConfig = {
  prefixPathMatch: 'prefixPathMatch',
  wholePathMatch: {
    exact: 'exact',
    regex: 'regex',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

http_route_path_match_config = appmesh.HttpRoutePathMatchConfig(
    prefix_path_match="prefixPathMatch",
    whole_path_match=appmesh.CfnRoute.HttpPathMatchProperty(
        exact="exact",
        regex="regex"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;

HttpRoutePathMatchConfig httpRoutePathMatchConfig = HttpRoutePathMatchConfig.builder()
        .prefixPathMatch("prefixPathMatch")
        .wholePathMatch(HttpPathMatchProperty.builder()
                .exact("exact")
                .regex("regex")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 httpRoutePathMatchConfig = new HttpRoutePathMatchConfig {
    PrefixPathMatch = "prefixPathMatch",
    WholePathMatch = new HttpPathMatchProperty {
        Exact = "exact",
        Regex = "regex"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpRoutePathMatchConfig := &HttpRoutePathMatchConfig{
	PrefixPathMatch: jsii.String("prefixPathMatch"),
	WholePathMatch: &HttpPathMatchProperty{
		Exact: jsii.String("exact"),
		Regex: jsii.String("regex"),
	},
}

Properties ​

prefixPathMatchoptionalstringprefix_path_matchoptionalstrprefixPathMatchoptionalStringPrefixPathMatchoptionalstringPrefixPathMatchoptional*string#
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

wholePathMatchoptionalCfnRoute.HttpPathMatchPropertywhole_path_matchoptionalHttpPathMatchPropertywholePathMatchoptionalHttpPathMatchPropertyWholePathMatchoptionalHttpPathMatchPropertyWholePathMatchoptionalHttpPathMatchProperty#
Route configuration for matching on the complete URL path of the request.

Default: no matching will be performed on the complete URL path