ImageScanningConfigurationProperty Struct
The image scanning configuration for a repository.
| Source | |
|---|---|
| Type last changed |
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,
};
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
image_scanning_configuration_property = ecr.CfnRepository.ImageScanningConfigurationProperty(
scan_on_push=False
)
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.*;
ImageScanningConfigurationProperty imageScanningConfigurationProperty = ImageScanningConfigurationProperty.builder()
.scanOnPush(false)
.build();
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 imageScanningConfigurationProperty = new ImageScanningConfigurationProperty {
ScanOnPush = false
};
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"
imageScanningConfigurationProperty := &ImageScanningConfigurationProperty{
ScanOnPush: jsii.Boolean(false),
}
Properties
scanOnPushoptionalboolean | IResolvablescan_on_pushoptionaltyping.Union[bool, IResolvable]scanOnPushoptionalBooleanScanOnPushoptionalboolScanOnPushoptionalinterface{} #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.