interface ImageScanningConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECR.CfnRepository.ImageScanningConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepository_ImageScanningConfigurationProperty |
![]() | software.amazon.awscdk.services.ecr.CfnRepository.ImageScanningConfigurationProperty |
![]() | aws_cdk.aws_ecr.CfnRepository.ImageScanningConfigurationProperty |
![]() | 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
Name | Type | Description |
---|---|---|
scan | boolean | IResolvable | The 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.