Class CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty>
- Enclosing interface:
CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty
@Stability(Stable)
public static final class CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ecrConfiguration(CfnImagePipelinePropsMixin.EcrConfigurationProperty ecrConfiguration) ecrConfiguration(IResolvable ecrConfiguration) imageScanningEnabled(Boolean imageScanningEnabled) imageScanningEnabled(IResolvable imageScanningEnabled)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ecrConfiguration
@Stability(Stable) public CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder ecrConfiguration(IResolvable ecrConfiguration) Sets the value ofCfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.getEcrConfiguration()- Parameters:
ecrConfiguration- Contains Amazon ECR settings for vulnerability scans.- Returns:
this
-
ecrConfiguration
@Stability(Stable) public CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder ecrConfiguration(CfnImagePipelinePropsMixin.EcrConfigurationProperty ecrConfiguration) Sets the value ofCfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.getEcrConfiguration()- Parameters:
ecrConfiguration- Contains Amazon ECR settings for vulnerability scans.- Returns:
this
-
imageScanningEnabled
@Stability(Stable) public CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder imageScanningEnabled(Boolean imageScanningEnabled) Sets the value ofCfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.getImageScanningEnabled()- Parameters:
imageScanningEnabled- A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.- Returns:
this
-
imageScanningEnabled
@Stability(Stable) public CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.Builder imageScanningEnabled(IResolvable imageScanningEnabled) Sets the value ofCfnImagePipelinePropsMixin.ImageScanningConfigurationProperty.getImageScanningEnabled()- Parameters:
imageScanningEnabled- A setting that indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty>- Returns:
- a new instance of
CfnImagePipelinePropsMixin.ImageScanningConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-