Jose Diaz-Gonzalez

Add ability to enable and disable S3EventSource

......@@ -179,6 +179,8 @@ class S3EventSource(EventSource):
LOG.debug(exc.response)
LOG.exception('Unable to add S3 event source')
enable = add
def update(self, function):
self.add(function)
......@@ -199,6 +201,8 @@ class S3EventSource(EventSource):
NotificationConfiguration=response)
LOG.debug(response)
disable = remove
def status(self, function):
LOG.debug('status for s3 notification for %s', function.name)
response = self._s3.call(
......