Interface ImageScanningConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ImageScanningConfiguration.Builder,,ImageScanningConfiguration> SdkBuilder<ImageScanningConfiguration.Builder,,ImageScanningConfiguration> SdkPojo
- Enclosing class:
ImageScanningConfiguration
@Mutable
@NotThreadSafe
public static interface ImageScanningConfiguration.Builder
extends SdkPojo, CopyableBuilder<ImageScanningConfiguration.Builder,ImageScanningConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionecrConfiguration(Consumer<EcrConfiguration.Builder> ecrConfiguration) Contains Amazon ECR settings for vulnerability scans.ecrConfiguration(EcrConfiguration ecrConfiguration) Contains Amazon ECR settings for vulnerability scans.imageScanningEnabled(Boolean imageScanningEnabled) Specifies whether Amazon Inspector scans for vulnerabilities when you create a new image, and whether Image Builder saves the findings.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
imageScanningEnabled
Specifies whether Amazon Inspector scans for vulnerabilities when you create a new image, and whether Image Builder saves the findings. Amazon Inspector must be enabled in the account. Image tests must also be enabled. For AMI output, Amazon Inspector scans the test instance. For container output, Amazon Inspector scans the container image that Image Builder pushes to the Amazon ECR repository from your
ecrConfigurationsettings.- Parameters:
imageScanningEnabled- Specifies whether Amazon Inspector scans for vulnerabilities when you create a new image, and whether Image Builder saves the findings. Amazon Inspector must be enabled in the account. Image tests must also be enabled. For AMI output, Amazon Inspector scans the test instance. For container output, Amazon Inspector scans the container image that Image Builder pushes to the Amazon ECR repository from yourecrConfigurationsettings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecrConfiguration
Contains Amazon ECR settings for vulnerability scans.
- Parameters:
ecrConfiguration- Contains Amazon ECR settings for vulnerability scans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecrConfiguration
default ImageScanningConfiguration.Builder ecrConfiguration(Consumer<EcrConfiguration.Builder> ecrConfiguration) Contains Amazon ECR settings for vulnerability scans.
This is a convenience method that creates an instance of theEcrConfiguration.Builderavoiding the need to create one manually viaEcrConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toecrConfiguration(EcrConfiguration).- Parameters:
ecrConfiguration- a consumer that will call methods onEcrConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-