def has_tag_with_value_in_list()

in functions/delete_alarms/app.py [0:0]


def has_tag_with_value_in_list(tag_dict: dict, tag_key: str, tag_values: List[str]):
    """ Determine if an alarm has an environment tag in the list. """
    list = [
        tag for tag in tag_dict if tag["Key"] == tag_key and tag["Value"] in tag_values
    ]
    return len(list) > 0