# CfnSigningConfigurationProps

Properties for defining a `CfnSigningConfiguration`.

Used as props by: [CfnSigningConfiguration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnSigningConfiguration.html)

- 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 cfnSigningConfigurationProps: ecr.CfnSigningConfigurationProps = {
  rules: [{
    signingProfileArn: 'signingProfileArn',

    // the properties below are optional
    repositoryFilters: [{
      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

cfn_signing_configuration_props = ecr.CfnSigningConfigurationProps(
    rules=[ecr.CfnSigningConfiguration.RuleProperty(
        signing_profile_arn="signingProfileArn",

        # the properties below are optional
        repository_filters=[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.*;

CfnSigningConfigurationProps cfnSigningConfigurationProps = CfnSigningConfigurationProps.builder()
        .rules(List.of(RuleProperty.builder()
                .signingProfileArn("signingProfileArn")

                // the properties below are optional
                .repositoryFilters(List.of(RepositoryFilterProperty.builder()
                        .filter("filter")
                        .filterType("filterType")
                        .build()))
                .build()))
        .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 cfnSigningConfigurationProps = new CfnSigningConfigurationProps {
    Rules = new [] { new RuleProperty {
        SigningProfileArn = "signingProfileArn",

        // the properties below are optional
        RepositoryFilters = new [] { 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"

cfnSigningConfigurationProps := &CfnSigningConfigurationProps{
	Rules: []interface{}{
		&RuleProperty{
			SigningProfileArn: jsii.String("signingProfileArn"),

			// the properties below are optional
			RepositoryFilters: []interface{}{
				&RepositoryFilterProperty{
					Filter: jsii.String("filter"),
					FilterType: jsii.String("filterType"),
				},
			},
		},
	},
}
```

## Properties

- `rules`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSigningConfiguration.RuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnSigningConfiguration.RuleProperty.html)[] (required) — A list of signing rules.

  Each rule defines a signing profile and optional repository filters that determine which images are automatically signed.
