# RepositoryFilterProperty

A repository filter used to determine which repositories have their images automatically signed on push.

Each filter consists of a filter type and filter value.

- Source: Generated at build time
- Type last changed: v2.230.0 · 26 Nov 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_ecr as ecr } from 'aws-cdk-lib';
const repositoryFilterProperty: ecr.CfnSigningConfiguration.RepositoryFilterProperty = {
  filter: 'filter',
  filterType: 'filterType',
};
```

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_ecr as ecr

repository_filter_property = ecr.CfnSigningConfiguration.RepositoryFilterProperty(
    filter="filter",
    filter_type="filterType"
)
```

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.ecr.*;

RepositoryFilterProperty repositoryFilterProperty = RepositoryFilterProperty.builder()
        .filter("filter")
        .filterType("filterType")
        .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.ECR;

var repositoryFilterProperty = new RepositoryFilterProperty {
    Filter = "filter",
    FilterType = "filterType"
};
```

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"

repositoryFilterProperty := &RepositoryFilterProperty{
	Filter: jsii.String("filter"),
	FilterType: jsii.String("filterType"),
}
```

## Properties

- `filter`: string (required) — The filter value used to match repository names.

  When using `WILDCARD_MATCH` , the `*` character matches any sequence of characters.

  Examples:

  - `myapp/*` - Matches all repositories starting with `myapp/`
  - `* /production` - Matches all repositories ending with `/production`
  - `*prod*` - Matches all repositories containing `prod`

- `filterType`: string (required) — The type of filter to apply.

  Currently, only `WILDCARD_MATCH` is supported, which uses wildcard patterns to match repository names.
