Class Match

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.assertions.Match
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.195Z") @Stability(Stable) public abstract class Match extends software.amazon.jsii.JsiiObject
Partial and special matching during template assertions.
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    Match(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Match(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Matcher
    Use this matcher in the place of a field's value, if the field must not be present.
    static Matcher
    Matches any non-null value at the target.
    static Matcher
    arrayEquals(List<? extends Object> pattern)
    Matches the specified pattern with the array found in the same relative path of the target.
    static Matcher
    arrayWith(List<? extends Object> pattern)
    Matches the specified pattern with the array found in the same relative path of the target.
    static Matcher
    exact(Object pattern)
    Deep exact matching of the specified pattern to the target.
    static Matcher
    not(Object pattern)
    Matches any target which does NOT follow the specified pattern.
    static Matcher
    objectEquals(Map<String,? extends Object> pattern)
    Matches the specified pattern to an object found in the same relative path of the target.
    static Matcher
    objectLike(Map<String,? extends Object> pattern)
    Matches the specified pattern to an object found in the same relative path of the target.
    static Matcher
    Matches any string-encoded JSON and applies the specified pattern after parsing it.
    static Matcher
    Matches targets according to a regular expression.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Match

      protected Match(software.amazon.jsii.JsiiObjectRef objRef)
    • Match

      protected Match(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Match

      @Stability(Stable) protected Match()
  • Method Details

    • absent

      @Stability(Stable) @NotNull public static Matcher absent()
      Use this matcher in the place of a field's value, if the field must not be present.
    • anyValue

      @Stability(Stable) @NotNull public static Matcher anyValue()
      Matches any non-null value at the target.
    • arrayEquals

      @Stability(Stable) @NotNull public static Matcher arrayEquals(@NotNull List<? extends Object> pattern)
      Matches the specified pattern with the array found in the same relative path of the target.

      The set of elements (or matchers) must match exactly and in order.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • arrayWith

      @Stability(Stable) @NotNull public static Matcher arrayWith(@NotNull List<? extends Object> pattern)
      Matches the specified pattern with the array found in the same relative path of the target.

      The set of elements (or matchers) must be in the same order as would be found.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • exact

      @Stability(Stable) @NotNull public static Matcher exact(@NotNull Object pattern)
      Deep exact matching of the specified pattern to the target.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • not

      @Stability(Stable) @NotNull public static Matcher not(@NotNull Object pattern)
      Matches any target which does NOT follow the specified pattern.

      Parameters:
      pattern - the pattern to NOT match. This parameter is required.
    • objectEquals

      @Stability(Stable) @NotNull public static Matcher objectEquals(@NotNull Map<String,? extends Object> pattern)
      Matches the specified pattern to an object found in the same relative path of the target.

      The keys and their values (or matchers) must match exactly with the target.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • objectLike

      @Stability(Stable) @NotNull public static Matcher objectLike(@NotNull Map<String,? extends Object> pattern)
      Matches the specified pattern to an object found in the same relative path of the target.

      The keys and their values (or matchers) must be present in the target but the target can be a superset.

      Parameters:
      pattern - the pattern to match. This parameter is required.
    • serializedJson

      @Stability(Stable) @NotNull public static Matcher serializedJson(@NotNull Object pattern)
      Matches any string-encoded JSON and applies the specified pattern after parsing it.

      Parameters:
      pattern - the pattern to match after parsing the encoded JSON. This parameter is required.
    • stringLikeRegexp

      @Stability(Stable) @NotNull public static Matcher stringLikeRegexp(@NotNull String pattern)
      Matches targets according to a regular expression.

      Parameters:
      pattern - This parameter is required.