Skip to content

Commit

Permalink
docs(events): update link about key policy for event bus (#31674)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

N/A

### Reason for this change
The link about key policy for an Event Bus has been updated.



### Description of changes
Updated a link in docs.


### Description of how you validated changes
No tests because only docs has been changed.



### 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*
  • Loading branch information
mazyu36 authored Oct 8, 2024
1 parent c9481fc commit 81b47b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/aws-cdk-lib/aws-events/lib/event-bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ export class EventBus extends EventBusBase {
resourceName: eventBus.name,
});

// Allow EventBridge to use customer managed key
// See https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption-event-bus-key-policy.html
/**
* Allow EventBridge to use customer managed key
*
* @see https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption-key-policy.html#eb-encryption-key-policy-bus
*/
if (props?.kmsKey) {
props?.kmsKey.addToResourcePolicy(new iam.PolicyStatement({
resources: ['*'],
Expand Down

0 comments on commit 81b47b7

Please sign in to comment.