Package software.amazon.awscdk
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
ConstructorsModifierConstructorDescriptionprotectedArrayMergeStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedArrayMergeStrategy(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic IArrayMergeStrategyappend()Append source elements after the existing target elements.static IArrayMergeStrategyprepend()Prepend source elements before the existing target elements.static IArrayMergeStrategyreplace()Replace the target array entirely with the source array.static IArrayMergeStrategyOverwrite target elements positionally with source elements.static IArrayMergeStrategyreplaceByKey(String key) 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Append source elements after the existing target elements.Example:
-
prepend
Prepend source elements before the existing target elements.Example:
-
replace
Replace the target array entirely with the source array.Example:
-
replaceByIndex
Overwrite target elements positionally with source elements.Target elements beyond the source length are preserved.
Example:
-
replaceByKey
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.
-