in frauddetector/frauddetector.py [0:0]
def delete_event_type(self):
"""Delete Amazon FraudDetector event. Wraps the boto3 SDK API to allow bulk operations.
Args:
:event: name of the event to delete
Returns:
:response_all: {variable_name: API-response-status, variable_name: API-response-status} dict
"""
response_all = []
lh.info("delete_event_type: event {}".format(self.event_type))
response = self.fd.delete_event_type(
name=self.event_type,
)
status = {self.event_type: response['ResponseMetadata']['HTTPStatusCode']}
response_all.append(status)
# update myself
self.events = self.fd.get_event_types()
# convert list of dicts to single dict
response_all = {k: v for d in response_all for k, v in d.items()}
return response_all