class PropertyMergeStrategy
| Language | Type name |
|---|---|
.NET | Amazon.CDK.PropertyMergeStrategy |
Go | github.com/aws/aws-cdk-go/awscdk/v2#PropertyMergeStrategy |
Java | software.amazon.awscdk.PropertyMergeStrategy |
Python | aws_cdk.PropertyMergeStrategy |
TypeScript (source) | aws-cdk-lib » PropertyMergeStrategy |
Strategy for handling nested properties in L1 property mixins.
Methods
| Name | Description |
|---|---|
| static combine() | Deep merges nested objects from source into target. |
| static override() | Replaces existing property values on the target with the values from the source. |
static combine()
public static combine(): IMergeStrategy
Returns
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.
static override()
public static override(): IMergeStrategy
Returns
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.

.NET
Go
Java
Python
TypeScript (