def METHOD_NAME(info_type_list):
  """Constructs the deidentify config dictionary for the dlp api.
    Args:
      info_type_list: A list containing the dlp info types to redact.
    Returns:
      A dictionary representation of the DLP API DeidentifyConfig object
      to be used to redact the sensitive fields.
  """
  transformation_config = {
      'info_types': [],
      'primitive_transformation': {
          'replace_config': {
              'new_value': {
                  'string_value': ''
              }
          }
      }
  }
  deidentify_config = {'info_type_transformations': {'transformations': []}}
  for info_type in info_type_list:
    config = copy.deepcopy(transformation_config)
    config['info_types'].append({'name': info_type})
    replace_config = config['primitive_transformation']['replace_config']
    replace_config['new_value']['string_value'] = '[%s]' % info_type
    deidentify_config['info_type_transformations']['transformations'].append(
        config)
  return deidentify_config