Fn.conditionIf is not usable in s3 module. #20551
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
needs-reproduction
This issue needs reproduction.
p2
Describe the bug
I am using
software.amazon.awscdk.services.s3.CfnBucket
, to create my S3 bucket and configure my replication Configuration, but when I use software.amazon.awscdk.core.FnFn.conditionIf
in.replicationConfiguration()
object returned fromFn.conditionif
re-writers the properties ofReplicationConfigurationProperty
. The first letter of the property names is lower case instead of capital, then CFN return this errorsupposed to be "Rules"
If I remove
Fn.conditionIf
everything works just fine.Expected Behavior
Expected
Fn.conditionIf
returned Object to be not modifiedCurrent Behavior
Fn.conditionif
re-writers the properties ofReplicationConfigurationProperty
. The first letter of the property names is lower case instead of capital, then CFN return this errorReproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
software.amazon.awssdk:s3:2.17.41,software.amazon.awscdk:core:1.110.1'
Framework Version
No response
Node.js Version
v18.0.0
OS
Mac OS
Language
Java
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: