def _validate_required_field(exception, config_type, field_name, config,
    config_name):
    """Validate required field is present."""
    if field_name not in config:
        raise exception(
            f'Field {field_name} is required for {config_type} {config_name}')
