ValidationError

class aws_cdk.core.ValidationError(*, message, source)

Bases: object

An error returned during the validation phase.

Parameters
  • message (str) – The error message.

  • source (Construct) – The construct which emitted the error.

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.core as cdk

# construct: cdk.Construct

validation_error = cdk.ValidationError(
    message="message",
    source=construct
)

Attributes

message

The error message.

Return type

str

source

The construct which emitted the error.

Return type

Construct