# ScanResultConditionProperty

The condition that the output AMI's scan results must meet for the image to pass.

When you set it, the test phase waits for the scan to finish, and Image Builder fails the image if a counted finding exceeds MaximumSeverityLabel.

- Source: Generated code
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const scanResultConditionProperty: imagebuilder.CfnImage.ScanResultConditionProperty = {
  maximumSeverityLabel: 'maximumSeverityLabel',

  // the properties below are optional
  fixAvailable: false,
};
```

## Properties

- `fixAvailable`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether only findings that have a fix available count toward MaximumSeverityLabel.

  When false, Image Builder counts every finding. The default is true.

- `maximumSeverityLabel`: string (required) — The maximum severity allowed for findings on the output AMI.

  A finding above this severity fails the image, unless FixAvailable excludes it.
