-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(events): add filter rules for prefixEqualsIgnoreCase, suffixEqua…
…lsIgnoreCase, wildcard, and anythingBut* matches (#32063) ### Issue # (if applicable) Closes #28462. ### Reason for this change Add support for: * Prefix matching while ignoring case * Suffix matching while ignoring case * Wildcard matching * Anything-but matching on suffixes * Anything-but matching using wildcards * Anything-but matching while ignoring case Extend anything-but matching on prefixes to support a list of prefix values. ### Description of changes Added functions on `Match` class: * `prefixEqualsIgnoreCase()` * `suffixEqualsIgnoreCase()` * `wildcard()` * `anythingButSuffix()` * `anythingButWildcard()` * `anythingButEqualsIgnoreCase()` Modified `anythingButPrefix()` to support rest parameters. ### Description of how you validated changes Added unit and integration tests for new and changed functions. ### 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
Showing
11 changed files
with
624 additions
and
36 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
....js.snapshot/IntegTestBatchDefaultEnvVarsStackDefaultTestDeployAssertC15EFFF2.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...testing/framework-integ/test/aws-events/test/integ.rule.js.snapshot/RuleStack.assets.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js.snapshot/cdk.out
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...s/@aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js.snapshot/integ.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 48 additions & 2 deletions
50
...aws-cdk-testing/framework-integ/test/aws-events/test/integ.rule.js.snapshot/manifest.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.