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.53.0 (build c071d26)",
               date="2022-02-12T00:09:13.307Z")
    @Stability(Stable)
    public interface IValidation
    extends software.amazon.jsii.JsiiSerializable
    Implement this interface in order for the construct to be able to validate itself.

    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. 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.