Skip to content

feat: add rule E3063 to validate GuardDuty Detector property exclusivity#4364

Open
JuanHPassos wants to merge 2 commits intoaws-cloudformation:mainfrom
JuanHPassos:main
Open

feat: add rule E3063 to validate GuardDuty Detector property exclusivity#4364
JuanHPassos wants to merge 2 commits intoaws-cloudformation:mainfrom
JuanHPassos:main

Conversation

@JuanHPassos
Copy link

Issue #4153 , if available: N/A

Description of changes:

Added a new cfn-lint rule (E3063) to validate that AWS::GuardDuty::Detector resources do not define both DataSources and Features simultaneously.

Following AWS best practices, the rule recommends using Features over the legacy DataSources property.

Included a test template (detector_exclusive_properties.yaml) that triggers the validation error to ensure the rule works as expected.

test_bad_good

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant