Skip to content

Commit e4e8361

Browse files
authored
docs(event-targets): clarify that adding an imported SNS Topic as an event target does not set required permissions (#30279)
### Issue #25583 Closes #25583 ### Reason for this change Add documentation to clarify that imported topics have to have the required permissions set manually. ### Description of changes Added docstring. ### Description of how you validated changes ### 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*
1 parent cf3599b commit e4e8361

File tree

1 file changed

+1
-0
lines changed
  • packages/aws-cdk-lib/aws-events-targets/lib

1 file changed

+1
-0
lines changed

packages/aws-cdk-lib/aws-events-targets/lib/sns.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export interface SnsTopicProps extends TargetBaseProps {
1717

1818
/**
1919
* Use an SNS topic as a target for Amazon EventBridge rules.
20+
* If the topic is imported the required permissions to publish to that topic need to be set manually.
2021
*
2122
* @example
2223
* /// fixture=withRepoAndTopic

0 commit comments

Comments
 (0)