Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #582: add support for SES MaxSendRate limit #583

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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