interface CfnPropertyMixinOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.mixins.CfnPropertyMixinOptions |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/mixins#CfnPropertyMixinOptions |
Java | software.amazon.awscdk.mixins.preview.mixins.CfnPropertyMixinOptions |
Python | aws_cdk.mixins_preview.mixins.CfnPropertyMixinOptions |
TypeScript (source) | @aws-cdk/mixins-preview ยป mixins ยป CfnPropertyMixinOptions |
Options for applying CfnProperty mixins.
Example
declare const bucket: s3.CfnBucket;
// MERGE (default): Deep merges properties with existing values
Mixins.of(bucket).apply(new CfnBucketPropsMixin(
{ versioningConfiguration: { status: "Enabled" } },
{ strategy: PropertyMergeStrategy.MERGE }
));
// OVERRIDE: Replaces existing property values
Mixins.of(bucket).apply(new CfnBucketPropsMixin(
{ versioningConfiguration: { status: "Enabled" } },
{ strategy: PropertyMergeStrategy.OVERRIDE }
));
Properties
| Name | Type | Description |
|---|---|---|
| strategy? | Property | Strategy for merging nested properties. |
strategy?
Type:
Property
(optional, default: PropertyMergeStrategy.MERGE)
Strategy for merging nested properties.

.NET
Go
Java
Python
TypeScript (