def get_certificate_id_to_name(**kwargs):
    """
    Use STS to fetch a map of IAM certificate IDs to names
    """
    id_to_name = {}
    account_number = kwargs.get("account_number")
    metrics.send(
        "get_certificate_id_to_name",
        "counter",
        1,
        metric_tags={"account_number": account_number},
    )

    while True:
        response = get_certificates(**kwargs)
        metadata = response["ServerCertificateMetadataList"]

        for m in metadata:
            id_to_name[m["ServerCertificateId"]] = m["ServerCertificateName"]

        if not response.get("Marker"):
            return id_to_name
        else:
            kwargs.update(dict(Marker=response["Marker"]))

    Use STS to fetch a map of IAM certificate IDs to names
    
lemur/plugins/lemur_aws/iam.py