Bugfix: put_permission action parameter
Boto3/AWS requires that the Action parameter of put_permissions is fully qualified as "events:PutEvents" not "PutEvents"
This commit is contained in:
parent
cb364eedc6
commit
b61989cb35
@ -210,7 +210,7 @@ class EventsBackend(BaseBackend):
|
||||
raise NotImplementedError()
|
||||
|
||||
def put_permission(self, action, principal, statement_id):
|
||||
if action is None or action != 'PutEvents':
|
||||
if action is None or action != 'events:PutEvents':
|
||||
raise JsonRESTError('InvalidParameterValue', 'Action must be PutEvents')
|
||||
|
||||
if principal is None or self.ACCOUNT_ID.match(principal) is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user