interface CfnPropertyMixinOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.CfnPropertyMixinOptions |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2#CfnPropertyMixinOptions |
Java | software.amazon.awscdk.cfnpropertymixins.CfnPropertyMixinOptions |
Python | aws_cdk.cfn_property_mixins.CfnPropertyMixinOptions |
TypeScript (source) | @aws-cdk/cfn-property-mixins » CfnPropertyMixinOptions |
Options for applying CfnProperty mixins.
Example
const overrideBucket = new s3.CfnBucket(scope, "OverrideBucket");
overrideBucket.publicAccessBlockConfiguration = { blockPublicAcls: true };
// Replaces the entire publicAccessBlockConfiguration
overrideBucket.with(new CfnBucketPropsMixin(
{ publicAccessBlockConfiguration: { blockPublicPolicy: true } },
{ strategy: PropertyMergeStrategy.override() },
));
// Result: { blockPublicPolicy: true } — blockPublicAcls is gone
Properties
| Name | Type | Description |
|---|---|---|
| strategy? | IMerge | Strategy for merging nested properties. |
strategy?
Type:
IMerge
(optional, default: PropertyMergeStrategy.combine())
Strategy for merging nested properties.

.NET
Go
Java
Python
TypeScript (