Interface AssertionResult

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-27T17:02:11.881Z") @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