code: func expandHostNasVolumeSpec(d *schema.ResourceData) *types.HostNasVolumeSpec {
  	obj := &types.HostNasVolumeSpec{
  		AccessMode:      d.Get("access_mode").(string),
  		LocalPath:       d.Get("name").(string),
  		RemoteHost:      structure.SliceInterfacesToStrings(d.Get("remote_hosts").([]interface{}))[0],
  		RemoteHostNames: structure.SliceInterfacesToStrings(d.Get("remote_hosts").([]interface{})),
  		RemotePath:      d.Get("remote_path").(string),
  		SecurityType:    d.Get("security_type").(string),
  		Type:            d.Get("type").(string),
  	}
  
  	return obj
  }
docs: // expandHostNasVolumeSpec reads certain ResourceData keys and returns a
  // HostNasVolumeSpec.