Skip to content
v2.278.0

PathMatchTypeProperty Struct ​

Describes a path match type.

Each rule can include only one of the following types of paths.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const pathMatchTypeProperty: vpclattice.CfnRule.PathMatchTypeProperty = {
  exact: 'exact',
  prefix: 'prefix',
};
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_vpclattice as vpclattice

path_match_type_property = vpclattice.CfnRule.PathMatchTypeProperty(
    exact="exact",
    prefix="prefix"
)
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.vpclattice.*;

PathMatchTypeProperty pathMatchTypeProperty = PathMatchTypeProperty.builder()
        .exact("exact")
        .prefix("prefix")
        .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.VpcLattice;

var pathMatchTypeProperty = new PathMatchTypeProperty {
    Exact = "exact",
    Prefix = "prefix"
};
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"

pathMatchTypeProperty := &PathMatchTypeProperty{
	Exact: jsii.String("exact"),
	Prefix: jsii.String("prefix"),
}

Properties ​

exactoptionalstringexactoptionalstrexactoptionalStringExactoptionalstringExactoptional*string #
An exact match of the path.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #
A prefix match of the path.