Interface ScanResultCondition.Builder

  • Method Details

    • maximumSeverityLabel

      ScanResultCondition.Builder maximumSeverityLabel(String maximumSeverityLabel)

      The maximum severity allowed for findings on the output AMI. A finding above this severity fails the image, unless fixAvailable excludes it. Valid values are INFORMATIONAL, LOW, MEDIUM, and HIGH. A CRITICAL finding that counts always fails the image.

      Parameters:
      maximumSeverityLabel - The maximum severity allowed for findings on the output AMI. A finding above this severity fails the image, unless fixAvailable excludes it. Valid values are INFORMATIONAL, LOW, MEDIUM, and HIGH. A CRITICAL finding that counts always fails the image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maximumSeverityLabel

      ScanResultCondition.Builder maximumSeverityLabel(MaximumSeverityLabel maximumSeverityLabel)

      The maximum severity allowed for findings on the output AMI. A finding above this severity fails the image, unless fixAvailable excludes it. Valid values are INFORMATIONAL, LOW, MEDIUM, and HIGH. A CRITICAL finding that counts always fails the image.

      Parameters:
      maximumSeverityLabel - The maximum severity allowed for findings on the output AMI. A finding above this severity fails the image, unless fixAvailable excludes it. Valid values are INFORMATIONAL, LOW, MEDIUM, and HIGH. A CRITICAL finding that counts always fails the image.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fixAvailable

      ScanResultCondition.Builder fixAvailable(Boolean fixAvailable)

      Specifies whether only findings that have a fix available count toward maximumSeverityLabel. When false, Image Builder counts every finding. The default is true.

      Parameters:
      fixAvailable - Specifies whether only findings that have a fix available count toward maximumSeverityLabel. When false, Image Builder counts every finding. The default is true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.