PropertyMergeStrategy

class aws_cdk.PropertyMergeStrategy(*args: Any, **kwargs)

Bases: object

Strategy for handling nested properties in L1 property mixins.

Static Methods

classmethod combine(*, arrays=None)

Deep merges nested objects from source into target.

When both the existing and new value for a key are plain objects, their properties are merged recursively. Primitives, arrays, and mismatched types are overridden by the source value.

Parameters:

arrays (Optional[IArrayMergeStrategy]) – Strategy for merging arrays. Default: ArrayMergeStrategy.replace()

Return type:

IMergeStrategy

classmethod override()

Replaces existing property values on the target with the values from the source.

Each allowed key is copied from source to target as-is, without inspecting nested objects. Any previous value on the target is discarded.

Return type:

IMergeStrategy