Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Related issue (if applicable):
n/a
Added support for Amazon SNS to handle Subjects as titles where the target is an SNS Topic, rather than phone number for an SMS message.
Increased the
title_maxlen
to the limit for the Amazon SNS where used for topics. Extended the logic to ensure backwards compatibility, so that the title is still added to the SMS messages, and retained in the body of messages sent to a Topic as well. Newer versions will still produce the same as the original output, with the sole exception being that the title will be used as the Subject for any email endpoints in topics. SMS endpoints within topics also behave as expected, with no change.Minor update to
AWS_HTTP_ERROR_MAP
to cover insufficient IAM permissions, specifically thatsns:CreateTopic
is also needed along withsns:Publish
Checklist
flake8
)Testing
Anyone can help test this source code as follows: