def parse_message()

in Code/lambda_function.py [0:0]


def parse_message(event):
    """Initialize event logic."""
    event_details = event['detail']
    if (event_details['messageType'] == 'ComplianceChangeNotification'):
        if 'oldEvaluationResult' not in event_details:
            old_recorded_time = (event_details['newEvaluationResult']['resultRecordedTime'])
        else:
            old_recorded_time = (event_details['oldEvaluationResult']['resultRecordedTime'])
        map_config_findings_to_sh(event, old_recorded_time)
    else:
        print("Other Notification")