in source/lib/events.py [0:0]
def remove_target(self):
try:
response = cwe_client.remove_targets(
Rule=self.rule_name,
Ids=[
self.target_id
]
)
return response
except Exception as e:
self.logger.error("unhandled exception: CloudWatchEvent_remove_target", exc_info=1)