From 81b47b75022750d6d8f64f889d0bae0f3ea0f4d3 Mon Sep 17 00:00:00 2001 From: Matsuda Date: Wed, 9 Oct 2024 01:46:26 +0900 Subject: [PATCH] docs(events): update link about key policy for event bus (#31674) ### 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* --- packages/aws-cdk-lib/aws-events/lib/event-bus.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk-lib/aws-events/lib/event-bus.ts b/packages/aws-cdk-lib/aws-events/lib/event-bus.ts index 4999351a625a3..f7b7e94d745e5 100644 --- a/packages/aws-cdk-lib/aws-events/lib/event-bus.ts +++ b/packages/aws-cdk-lib/aws-events/lib/event-bus.ts @@ -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: ['*'],