def get_sh_input_config(cfg, data_source):
    """Get Sentinel Hub OGC configuration for given data source.

    :param cfg: COnfiguration
    :type cfg: dict
    :param data_source: Sentinel Hub's data source
    :type data_source: DataSource
    :return: Sentinel Hub OGC configuration
    :rtype: [type]
    """
    for sh_input in cfg['sh_inputs']:
        if sh_input['data_source'] == data_source.name:
            return sh_input

    return None