def fetch_arns_for_findings(inspector_client):
    """
    Fetch all ARNs for findings discovered in the latest run of all enabled Assessment Templates.
    :param inspector_client:
    :return:
    """
    # at: Assessment template
    # arn: Amazon resource name
    findings = set()

    # Get all assessment templates for current region
    at_arns = inspector_client.list_assessment_templates()['assessmentTemplateArns']
    if len(at_arns) > 0:
        at_details = inspector_client.describe_assessment_templates(assessmentTemplateArns=at_arns)

        # For each template, get the ARN for the latest run
        if "assessmentTemplates" in at_details:
            at_runs = [t['lastAssessmentRunArn'] for t in at_details['assessmentTemplates']]
            paginator = inspector_client.get_paginator('list_findings', )
            for page in paginator.paginate(assessmentRunArns=at_runs,
                                           maxResults=500):
                if len(page['findingArns']) > 0:
                    findings.add(page['findingArns'][0])

    return findings