Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(events): add filter rules for prefixEqualsIgnoreCase, suffixEqualsIgnoreCase, wildcard, and anythingBut* matches #32063

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6bfa0ba
Add wildcard match in event-pattern.ts
jaw111 Nov 7, 2024
dd23fea
add test for wildcard match in matchers.test.ts
jaw111 Nov 7, 2024
07d6d55
Update README.md
jaw111 Nov 7, 2024
ce497a5
add integration test for wildcard in integ.rule.ts
jaw111 Nov 7, 2024
b1f8342
simplify wildcard pattern in integration test
jaw111 Nov 8, 2024
0ac3c00
update integration test snapshot
jaw111 Nov 8, 2024
4b70c5e
update integration test and snapshot
jaw111 Nov 9, 2024
0982d12
extend anythingBut rules
jaw111 Nov 9, 2024
c6709c2
refactor and abstract anything-but conjunctions and adjust tests acco…
jaw111 Nov 9, 2024
e6729ef
refactor and add comment for clarity
jaw111 Nov 9, 2024
98fbb4f
update integration test snapshot
jaw111 Nov 9, 2024
b362fb1
add support for prefix and suffix matching while ignoring case
jaw111 Nov 9, 2024
2a7f428
add integration tests and update snapshot
jaw111 Nov 9, 2024
4f8520c
Merge branch 'main' into 28462-aws-events-match-wildcard
mrgrain Nov 12, 2024
7e27759
Merge branch 'aws:main' into 28462-aws-events-match-wildcard
jaw111 Nov 13, 2024
03534d9
add examples for prefixEqualsIgnoreCase() and suffixEqualsIgnoreCase(…
jaw111 Nov 13, 2024
d7f1011
fix code syntax errors in README.md
jaw111 Nov 13, 2024
41f7ef1
Update README.md with additional examples for the new methods
jaw111 Nov 13, 2024
38cbf8a
Merge branch 'main' into 28462-aws-events-match-wildcard
jaw111 Nov 13, 2024
da62a0e
Merge branch 'main' into 28462-aws-events-match-wildcard
jaw111 Nov 17, 2024
98c5e38
Merge branch 'main' into 28462-aws-events-match-wildcard
jaw111 Nov 28, 2024
07a1234
Update packages/aws-cdk-lib/aws-events/README.md
jaw111 Nov 30, 2024
f0a3940
Merge branch 'main' into 28462-aws-events-match-wildcard
mergify[bot] Dec 3, 2024
f5e3f56
Merge branch 'main' into 28462-aws-events-match-wildcard
mergify[bot] Dec 4, 2024
d823c86
Merge branch 'main' into 28462-aws-events-match-wildcard
mergify[bot] Dec 4, 2024
c1d531a
Merge branch 'main' into 28462-aws-events-match-wildcard
mergify[bot] Dec 4, 2024
34ca646
Merge branch 'main' into 28462-aws-events-match-wildcard
mergify[bot] Dec 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,112 @@
},
"State": "ENABLED"
}
},
"MyWildcardRule477FB0F9": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"wildcard": "account*"
}
]
},
"State": "ENABLED"
}
},
"MyAnythingButPrefixRule756FC7C6": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"anything-but": {
"prefix": "prefix-"
}
}
]
},
"State": "ENABLED"
}
},
"MyAnythingButSuffixRuleB1E496DF": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"anything-but": {
"suffix": "-suffix"
}
}
]
},
"State": "ENABLED"
}
},
"MyAnythingButWildcardRuleEED7F44B": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"anything-but": {
"wildcard": "account*"
}
}
]
},
"State": "ENABLED"
}
},
"MyAnythingButEqualsIgnoreCaseEBE7F91F": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"anything-but": {
"equals-ignore-case": [
"account1",
"account2"
]
}
}
]
},
"State": "ENABLED"
}
},
"MyPrefixEqualsIgnoreCaseC9726B40": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"prefix": {
"equals-ignore-case": "prefix-"
}
}
]
},
"State": "ENABLED"
}
},
"MySuffixEqualsIgnoreCaseBE2DDE03": {
"Type": "AWS::Events::Rule",
"Properties": {
"EventPattern": {
"account": [
{
"suffix": {
"equals-ignore-case": "-suffix"
}
}
]
},
"State": "ENABLED"
}
}
},
"Parameters": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading