# PathPatternConfigProperty

Information about a path pattern condition.

- Source: Generated at build time
- Type last changed: v2.221.0 · 24 Oct 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
const pathPatternConfigProperty: elbv2.CfnListenerRule.PathPatternConfigProperty = {
  regexValues: ['regexValues'],
  values: ['values'],
};
```

Python:

```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_elasticloadbalancingv2 as elbv2

path_pattern_config_property = elbv2.CfnListenerRule.PathPatternConfigProperty(
    regex_values=["regexValues"],
    values=["values"]
)
```

Java:

```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.elasticloadbalancingv2.*;

PathPatternConfigProperty pathPatternConfigProperty = PathPatternConfigProperty.builder()
        .regexValues(List.of("regexValues"))
        .values(List.of("values"))
        .build();
```

C# / .NET:

```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.ElasticLoadBalancingV2;

var pathPatternConfigProperty = new PathPatternConfigProperty {
    RegexValues = new [] { "regexValues" },
    Values = new [] { "values" }
};
```

Golang:

```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"

pathPatternConfigProperty := &PathPatternConfigProperty{
	RegexValues: []*string{
		jsii.String("regexValues"),
	},
	Values: []*string{
		jsii.String("values"),
	},
}
```

## Properties

- `regexValues`: string[]

- `values`: string[] — The path patterns to compare against the request URL.

  The maximum size of each string is 128 characters. The comparison is case sensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

  If you specify multiple strings, the condition is satisfied if one of them matches the request URL. The path pattern is compared only to the path of the URL, not to its query string.
