Skip to content

Commit

Permalink
Issue jantman#582: add support for SES MaxSendRate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
docto-pga committed May 22, 2023
1 parent eec67df commit 06fcb67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions awslimitchecker/services/ses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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):
"""
Expand Down

0 comments on commit 06fcb67

Please sign in to comment.