# ImageScanningConfigurationProperty

The image scanning configuration for a repository.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 imageScanningConfigurationProperty: ecr.CfnRepository.ImageScanningConfigurationProperty = {
  scanOnPush: false,
};
```

## Properties

- `scanOnPush`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The setting that determines whether images are scanned after being pushed to a repository.

  If set to `true` , images will be scanned after being pushed. If this parameter is not specified, it will default to `false` and images will not be scanned unless a scan is manually started.
