def print_short_finding()

in detection-ml-wksp/aws_lambda/guardduty_ingest.py [0:0]


def print_short_finding(finding):
    """
    Prints out an abbreviated, one-line representation of a GuardDuty finding.
    
    :param finding: a GuardDuty finding
    """
    for ip in _extract_source_ips(finding):
        print('[{timestamp}] {region}\t{ip}\t{type}\t{id}'.format(
            timestamp=finding['updatedAt'],
            region=finding['region'],
            ip=ip,
            type=finding['type'],
            id=finding['id']
        ))