interface ImageScanningConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECR.CfnRepository.ImageScanningConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepository_ImageScanningConfigurationProperty |
Java | software.amazon.awscdk.services.ecr.CfnRepository.ImageScanningConfigurationProperty |
Python | aws_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
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.