class ValidationResults
Language | Type name |
---|---|
.NET | Amazon.CDK.ValidationResults |
Go | github.com/aws/aws-cdk-go/awscdk/v2#ValidationResults |
Java | software.amazon.awscdk.ValidationResults |
Python | aws_cdk.ValidationResults |
TypeScript (source) | aws-cdk-lib » ValidationResults |
A collection of validation results.
Example
// 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
new ValidationResults(results?: ValidationResult[])
Parameters
- results
Validation
Result []
Properties
Name | Type | Description |
---|---|---|
is | boolean | |
results | Validation [] |
isSuccess
Type:
boolean
results
Type:
Validation
[]
Methods
Name | Description |
---|---|
collect(result) | |
error | |
wrap(message) | Wrap up all validation results into a single tree node. |
collect(result)
public collect(result: ValidationResult): void
Parameters
- result
Validation
Result
TreeList()
errorpublic errorTreeList(): string
Returns
string
wrap(message)
public wrap(message: string): ValidationResult
Parameters
- message
string
Returns
Wrap up all validation results into a single tree node.
If there are failures in the collection, add a message, otherwise return a success.