code: func expandLinkDiscoveryProtocolConfig(d *schema.ResourceData) *types.LinkDiscoveryProtocolConfig {
  	obj := &types.LinkDiscoveryProtocolConfig{
  		Operation: d.Get("link_discovery_operation").(string),
  		Protocol:  d.Get("link_discovery_protocol").(string),
  	}
  	return obj
  }
docs: // expandLinkDiscoveryProtocolConfig reads certain ResourceData keys and
  // returns a LinkDiscoveryProtocolConfig.