Interface AssertionResult

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AssertionResult.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:38.995Z") @Stability(Experimental) public interface AssertionResult extends software.amazon.jsii.JsiiSerializable
(experimental) The result of an Assertion wrapping the actual result data in another struct.

Needed to access the whole message via getAtt() on the custom resource.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.integtests.alpha.*;
 AssertionResult assertionResult = AssertionResult.builder()
         .assertion("assertion")
         // the properties below are optional
         .failed(false)
         .build();
 
  • Method Details

    • getAssertion

      @Stability(Experimental) @NotNull String getAssertion()
      (experimental) The result of an assertion.
    • getFailed

      @Stability(Experimental) @Nullable default Boolean getFailed()
      (experimental) Whether or not the assertion failed.

      Default: false

    • builder

      @Stability(Experimental) static AssertionResult.Builder builder()
      Returns:
      a AssertionResult.Builder of AssertionResult