Interface ImageScanningConfiguration.Builder

  • Method Details

    • imageScanningEnabled

      ImageScanningConfiguration.Builder imageScanningEnabled(Boolean 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.

      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:
      Returns a reference to this object so that method calls can be chained together.
    • ecrConfiguration

      ImageScanningConfiguration.Builder ecrConfiguration(EcrConfiguration 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 the EcrConfiguration.Builder avoiding the need to create one manually via EcrConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ecrConfiguration(EcrConfiguration).

      Parameters:
      ecrConfiguration - a consumer that will call methods on EcrConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: