# CfnRegistryScanningConfigurationProps

Properties for defining a `CfnRegistryScanningConfiguration`.

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

- Source: Generated at build time
- Type last changed: v2.194.0 · 2 May 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 cfnRegistryScanningConfigurationProps: ecr.CfnRegistryScanningConfigurationProps = {
  rules: [{
    repositoryFilters: [{
      filter: 'filter',
      filterType: 'filterType',
    }],
    scanFrequency: 'scanFrequency',
  }],
  scanType: 'scanType',
};
```

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_registry_scanning_configuration_props = ecr.CfnRegistryScanningConfigurationProps(
    rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
        repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
            filter="filter",
            filter_type="filterType"
        )],
        scan_frequency="scanFrequency"
    )],
    scan_type="scanType"
)
```

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

CfnRegistryScanningConfigurationProps cfnRegistryScanningConfigurationProps = CfnRegistryScanningConfigurationProps.builder()
        .rules(List.of(ScanningRuleProperty.builder()
                .repositoryFilters(List.of(RepositoryFilterProperty.builder()
                        .filter("filter")
                        .filterType("filterType")
                        .build()))
                .scanFrequency("scanFrequency")
                .build()))
        .scanType("scanType")
        .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 cfnRegistryScanningConfigurationProps = new CfnRegistryScanningConfigurationProps {
    Rules = new [] { new ScanningRuleProperty {
        RepositoryFilters = new [] { new RepositoryFilterProperty {
            Filter = "filter",
            FilterType = "filterType"
        } },
        ScanFrequency = "scanFrequency"
    } },
    ScanType = "scanType"
};
```

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"

cfnRegistryScanningConfigurationProps := &CfnRegistryScanningConfigurationProps{
	Rules: []interface{}{
		&ScanningRuleProperty{
			RepositoryFilters: []interface{}{
				&RepositoryFilterProperty{
					Filter: jsii.String("filter"),
					FilterType: jsii.String("filterType"),
				},
			},
			ScanFrequency: jsii.String("scanFrequency"),
		},
	},
	ScanType: jsii.String("scanType"),
}
```

## 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) | [CfnRegistryScanningConfiguration.ScanningRuleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty.html)[] (required) — The scanning rules associated with the registry.

- `scanType`: string (required) — The type of scanning configured for the registry.
