From 06fcb67eee9bda208e318ac647a37a39295e9aa1 Mon Sep 17 00:00:00 2001 From: Pierre GALDON Date: Mon, 22 May 2023 15:33:17 +0200 Subject: [PATCH] Issue #582: add support for SES MaxSendRate limit --- awslimitchecker/services/ses.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awslimitchecker/services/ses.py b/awslimitchecker/services/ses.py index 058cf15d..bd708e35 100644 --- a/awslimitchecker/services/ses.py +++ b/awslimitchecker/services/ses.py @@ -102,6 +102,13 @@ def get_limits(self): self.critical_threshold, limit_type='AWS::SES::Email', ) + limits['Max sending per second'] = AwsLimit( + 'Max sending per second', + self, + 1, + self.warning_threshold, + self.critical_threshold, + limit_type='AWS::SES::Email',) self.limits = limits return limits @@ -125,6 +132,7 @@ def _update_limits_from_api(self): logger.warning('Skipping SES: %s', str(ex)) return self.limits['Daily sending quota']._set_api_limit(resp['Max24HourSend']) + self.limits['Max sending per second']._set_api_limit(resp['MaxSendRate']) def required_iam_permissions(self): """