Class ArrayMergeStrategy

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

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-13T16:55:01.668Z") @Stability(Stable) public class ArrayMergeStrategy extends software.amazon.jsii.JsiiObject
Strategies for merging arrays in L1 property mixins.

Array elements are never deep-merged.

  • 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
    ArrayMergeStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ArrayMergeStrategy(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Append source elements after the existing target elements.
    Prepend source elements before the existing target elements.
    Replace the target array entirely with the source array.
    Overwrite target elements positionally with source elements.
    Match source and target elements by a shared key property.

    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

    • ArrayMergeStrategy

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

      protected ArrayMergeStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • append

      @Stability(Stable) @NotNull public static IArrayMergeStrategy append()
      Append source elements after the existing target elements.

      Example:

       
    • prepend

      @Stability(Stable) @NotNull public static IArrayMergeStrategy prepend()
      Prepend source elements before the existing target elements.

      Example:

       
    • replace

      @Stability(Stable) @NotNull public static IArrayMergeStrategy replace()
      Replace the target array entirely with the source array.

      Example:

       
    • replaceByIndex

      @Stability(Stable) @NotNull public static IArrayMergeStrategy replaceByIndex()
      Overwrite target elements positionally with source elements.

      Target elements beyond the source length are preserved.

      Example:

       
    • replaceByKey

      @Stability(Stable) @NotNull public static IArrayMergeStrategy replaceByKey(@NotNull String key)
      Match source and target elements by a shared key property.

      Matching target elements are replaced (not deep-merged). Unmatched source elements are appended.

      Example:

       

      Parameters:
      key -
      • The property name to match elements on.
      This parameter is required.