Skip to content
v2.276.0

RepositoryFilterProperty Struct ​

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.

Example ​

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
# 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
// 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();
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"
};
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 ​

filterstringfilterstrfilterStringFilterstringFilter*stringrequired#
The filter value used to match repository names.
notes

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
filterTypestringfilter_typestrfilterTypeStringFilterTypestringFilterType*stringrequired#
The type of filter to apply.

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