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