def is_mfa_required()

in Onboarding/AWS/Utils.py [0:0]


def is_mfa_required(conditions: Dict[str, Dict[str, str]]) -> bool:
    condition_type, condition_key = 'Bool', 'aws:MultiFactorAuthPresent'
    return conditions.get(condition_type, {}).get(condition_key, "") == "true"