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
chore(s3): update annotation phrase of addReplicationPolicy() (#33459)
### Issue # (if applicable)
None
### Reason for this change
As mentioned in [this comment](#33360 (comment)), the annotation phrase is incorrect and may confuse users.
The `addReplicationPolicy()` function works to add a resource policy for the destination bucket, but the annotation phrase says source bucket.
### Description of changes
```diff
- For Cross-account S3 replication, ensure to set up permissions on source bucket using method addReplicationPolicy()
+ For Cross-account S3 replication, ensure to set up permissions on destination bucket using method addReplicationPolicy()
```
### Describe any new or updated permissions being added
None
### Description of how you validated changes
None
### 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*
Annotations.of(this).addInfo('For Cross-account S3 replication, ensure to set up permissions on source bucket using method addReplicationPolicy() ');
2853
+
Annotations.of(this).addInfo('For Cross-account S3 replication, ensure to set up permissions on destination bucket using method addReplicationPolicy() ');
2854
2854
}elseif(rule.accessControlTransition){
2855
2855
thrownewValidationError('accessControlTranslation is only supported for cross-account replication',this);
0 commit comments