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:
cpitchford 2018-05-15 18:28:35 +01:00 committed by GitHub
parent cb364eedc6
commit b61989cb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: