You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(s3): resolve synthesis error in BucketPolicy.fromCfnBucketPolicy() (#35633)
### Issue # (if applicable)
Closes [#34322](#34322)
### Reason for this change
Fixes synthesis error: 'Supplied properties not correct for CfnBucketPolicyProps: policyDocument: required but missing'
### Description of changes
- Fix synthesis error where duplicate CfnBucketPolicy was created without policyDocument
- Ensure PolicyDocument is properly passed from original CfnBucketPolicy to constructor
- Maintains existing behavior while fixing synthesis bug
### Description of how you validated changes
- Add test to verify synthesis works and duplicate resources are created as expected
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments