# ValidationResults

A collection of validation results.

- Source: [`core/lib/runtime.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/runtime.ts#L188)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';

declare const validationResult: cdk.ValidationResult;
const validationResults = new cdk.ValidationResults(/* all optional props */ [validationResult]);
```

## Initializer

```ts
new ValidationResults(results?: ValidationResult[])
```

## Properties

- `isSuccess`: boolean

- `results`: [ValidationResult](/cdk/api/v2/docs/aws-cdk-lib.ValidationResult.html)[]

## Methods

- `collect(result: ValidationResult): void`

- `errorTreeList(): string`

- `wrap(message: string): ValidationResult` — Wrap up all validation results into a single tree node.

  If there are failures in the collection, add a message, otherwise
  return a success.
