Add attributes parameter support for sns create_topic API

This commit is contained in:
Berislav Kovacki 2019-02-21 22:08:46 +01:00
commit 7e863b0260
3 changed files with 19 additions and 3 deletions

View file

@ -75,7 +75,8 @@ class SNSResponse(BaseResponse):
def create_topic(self):
name = self._get_param('Name')
topic = self.backend.create_topic(name)
attributes = self._get_attributes()
topic = self.backend.create_topic(name, attributes)
if self.request_json:
return json.dumps({