Skip to content

Commit

Permalink
Addresses linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonce committed Aug 7, 2024
1 parent 53eded0 commit cd092cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/notify_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def format_guardduty_finding(message: Dict[str, Any], region: str) -> Dict[str,
"text": f"AWS GuardDuty Finding - {detail.get('title')}",
}


def format_security_announcements(message: Dict[str, Any]) -> Dict[str, Any]:
"""
Format GuardDuty & SecurityHub announcements into Slack message format
Expand Down Expand Up @@ -286,6 +287,7 @@ def format_security_announcements(message: Dict[str, Any]) -> Dict[str, Any]:
else:
return False


class AwsHealthCategory(Enum):
"""Maps AWS Health eventTypeCategory to Slack message format color
Expand Down

0 comments on commit cd092cb

Please sign in to comment.