Interface ImageScanningConfiguration.Builder

  • Method Details

    • imageScanningEnabled

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

      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 your ecrConfiguration settings.
      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: