-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bcpenta
authored and
bcpenta
committed
Oct 22, 2024
1 parent
db0f36c
commit 976084e
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
policies/aws_waf_policies/aws_waf_webacl_has_associated_resources.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
def policy(resource): | ||
# Check if the WebACL has any associated resources | ||
associations = resource.get("AssociatedResources", []) | ||
return len(associations) > 0 | ||
return len(associations) > 0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,5 @@ Tests: | |
[ | ||
"arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-app" | ||
] | ||
} | ||
} | ||
|