ValidationResults

class aws_cdk.ValidationResults(results=None)

Bases: object

A collection of validation results.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

# validation_result: cdk.ValidationResult

validation_results = cdk.ValidationResults([validation_result])
Parameters:

results (Optional[Sequence[ValidationResult]]) –

Methods

collect(result)
Parameters:

result (ValidationResult) –

Return type:

None

error_tree_list()
Return type:

str

wrap(message)

Wrap up all validation results into a single tree node.

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

Parameters:

message (str) –

Return type:

ValidationResult

Attributes

is_success
results