Class CfnImage.ImageScanningConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImage.ImageScanningConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImage.ImageScanningConfigurationProperty>
- Enclosing interface:
CfnImage.ImageScanningConfigurationProperty
@Stability(Stable)
public static final class CfnImage.ImageScanningConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImage.ImageScanningConfigurationProperty>
A builder for
CfnImage.ImageScanningConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ecrConfiguration
(IResolvable ecrConfiguration) Sets the value ofCfnImage.ImageScanningConfigurationProperty.getEcrConfiguration()
ecrConfiguration
(CfnImage.EcrConfigurationProperty ecrConfiguration) Sets the value ofCfnImage.ImageScanningConfigurationProperty.getEcrConfiguration()
imageScanningEnabled
(Boolean imageScanningEnabled) Sets the value ofCfnImage.ImageScanningConfigurationProperty.getImageScanningEnabled()
imageScanningEnabled
(IResolvable imageScanningEnabled) Sets the value ofCfnImage.ImageScanningConfigurationProperty.getImageScanningEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ecrConfiguration
@Stability(Stable) public CfnImage.ImageScanningConfigurationProperty.Builder ecrConfiguration(IResolvable ecrConfiguration) Sets the value ofCfnImage.ImageScanningConfigurationProperty.getEcrConfiguration()
- Parameters:
ecrConfiguration
- Contains Amazon ECR settings for vulnerability scans.- Returns:
this
-
ecrConfiguration
@Stability(Stable) public CfnImage.ImageScanningConfigurationProperty.Builder ecrConfiguration(CfnImage.EcrConfigurationProperty ecrConfiguration) Sets the value ofCfnImage.ImageScanningConfigurationProperty.getEcrConfiguration()
- Parameters:
ecrConfiguration
- Contains Amazon ECR settings for vulnerability scans.- Returns:
this
-
imageScanningEnabled
@Stability(Stable) public CfnImage.ImageScanningConfigurationProperty.Builder imageScanningEnabled(Boolean imageScanningEnabled) Sets the value ofCfnImage.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 CfnImage.ImageScanningConfigurationProperty.Builder imageScanningEnabled(IResolvable imageScanningEnabled) Sets the value ofCfnImage.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnImage.ImageScanningConfigurationProperty>
- Returns:
- a new instance of
CfnImage.ImageScanningConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-