SNS create_topic should only accept valid characters (#1329)
* SNS create_topic should only accept valid characters Closes #1328 * Fix flake8 errors * Updated regex to match full TopicName constraints Fixed test_server as it contained invalid TopicNames’ per constraints * fix error message for invalid topic name
This commit is contained in:
parent
abd4d09afe
commit
2ad0f2fc1c
4 changed files with 38 additions and 7 deletions
|
|
@ -32,3 +32,11 @@ class SNSInvalidParameter(RESTError):
|
|||
def __init__(self, message):
|
||||
super(SNSInvalidParameter, self).__init__(
|
||||
"InvalidParameter", message)
|
||||
|
||||
|
||||
class InvalidParameterValue(RESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self, message):
|
||||
super(InvalidParameterValue, self).__init__(
|
||||
"InvalidParameterValue", message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue