Interface IValidation

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Subinterfaces:
    IValidation.Jsii$Default
    All Known Implementing Classes:
    IValidation.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.57.0 (build f614666)",
               date="2022-05-02T00:17:06.883Z")
    @Stability(Stable)
    public interface IValidation
    extends software.amazon.jsii.JsiiSerializable
    Implement this interface in order for the construct to be able to validate itself.
    • Method Detail

      • validate

        @Stability(Stable)
        @NotNull
        List<String> validate()
        Validate the current construct.

        This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

        Returns:
        An array of validation error messages, or an empty array if there the construct is valid.