aws-cdk-lib.aws_ecr.CfnRepository.ImageScanningConfigurationProperty

interface ImageScanningConfigurationProperty

LanguageType name
.NETAmazon.CDK.AWS.ECR.CfnRepository.ImageScanningConfigurationProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepository_ImageScanningConfigurationProperty
Javasoftware.amazon.awscdk.services.ecr.CfnRepository.ImageScanningConfigurationProperty
Pythonaws_cdk.aws_ecr.CfnRepository.ImageScanningConfigurationProperty
TypeScript aws-cdk-lib » aws_ecr » CfnRepository » ImageScanningConfigurationProperty

The image scanning configuration for a repository.

Example

// 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

NameTypeDescription
scanOnPush?boolean | IResolvableThe setting that determines whether images are scanned after being pushed to a repository.

scanOnPush?

Type: boolean | IResolvable (optional)

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.