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