Jose Diaz-Gonzalez

Add ability to enable and disable S3EventSource

...@@ -179,6 +179,8 @@ class S3EventSource(EventSource): ...@@ -179,6 +179,8 @@ class S3EventSource(EventSource):
179 LOG.debug(exc.response) 179 LOG.debug(exc.response)
180 LOG.exception('Unable to add S3 event source') 180 LOG.exception('Unable to add S3 event source')
181 181
182 + enable = add
183 +
182 def update(self, function): 184 def update(self, function):
183 self.add(function) 185 self.add(function)
184 186
...@@ -199,6 +201,8 @@ class S3EventSource(EventSource): ...@@ -199,6 +201,8 @@ class S3EventSource(EventSource):
199 NotificationConfiguration=response) 201 NotificationConfiguration=response)
200 LOG.debug(response) 202 LOG.debug(response)
201 203
204 + disable = remove
205 +
202 def status(self, function): 206 def status(self, function):
203 LOG.debug('status for s3 notification for %s', function.name) 207 LOG.debug('status for s3 notification for %s', function.name)
204 response = self._s3.call( 208 response = self._s3.call(
......