Skip to content
v2.277.0

HttpPathMatchProperty Struct ​

An object representing the path to match in the request.

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 httpPathMatchProperty: appmesh.CfnRoute.HttpPathMatchProperty = {
  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_path_match_property = 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.*;

HttpPathMatchProperty httpPathMatchProperty = HttpPathMatchProperty.builder()
        .exact("exact")
        .regex("regex")
        .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 httpPathMatchProperty = 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"

httpPathMatchProperty := &HttpPathMatchProperty{
	Exact: jsii.String("exact"),
	Regex: jsii.String("regex"),
}

Properties ​

exactoptionalstringexactoptionalstrexactoptionalStringExactoptionalstringExactoptional*string#
The exact path to match on.
regexoptionalstringregexoptionalstrregexoptionalStringRegexoptionalstringRegexoptional*string#
The regex used to match the path.