in frauddetector/frauddetector.py [0:0]
def delete_entity_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 = []
response = self.fd.delete_entity_type(
name=self.entity_type,
)
lh.info("delete_entity_type: entity {} deleted".format(self.entity_type))
status = {self.entity_type: response['ResponseMetadata']['HTTPStatusCode']}
response_all.append(status)
# update myself
self.entities = self.fd.get_entity_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