Skip to content

Conversation

@gasolima
Copy link
Contributor

Issue # (if applicable)

N/A

Reason for this change

onEvent() has a lot of options other than description e.g. ruleName detail etc..
The old code didn't pass those values to rule, so it will never be propagated properly, so the consumer of this method will think that we're respecting their options, but in real we're discarding it.

Description of changes

Creating the rule first with all the options so all the options from the consumer get propagated properly to the rule, then add the specific things that you want.

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Add unit tests

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@aws-cdk-automation aws-cdk-automation requested a review from a team October 23, 2025 13:10
@github-actions github-actions bot added the p2 label Oct 23, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 23, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@gasolima gasolima force-pushed the fix-onEvent branch 2 times, most recently from c8d5581 to 8b64ccc Compare October 24, 2025 12:58
@gasolima gasolima marked this pull request as ready for review October 24, 2025 13:36
@gasolima gasolima changed the title fix: onEvent function passes all the options to rule resource fix: onEvent function to pass all the options to rule resource Oct 30, 2025
@aemada-aws aemada-aws added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Nov 4, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review November 4, 2025 10:57

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@mergify
Copy link
Contributor

mergify bot commented Nov 4, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 3d7023d into aws:main Nov 4, 2025
28 of 29 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants